remove command function

This commit is contained in:
zhiqiang feng
2020-12-22 10:57:45 +08:00
parent 594f1e6778
commit 6f00ed6029
3 changed files with 11 additions and 4 deletions
+4 -2
View File
@@ -28,10 +28,12 @@ var testCmd = &cobra.Command{
Long: `loading config file
Test serial port
Test load sqlite database and init table`,
Run: test,
Run: func(cmd *cobra.Command, args []string) {
test()
},
}
func test(cmd *cobra.Command, args []string) {
func test() {
log.Println("Testing environment")
_ = utils.OpenPort(device, baudrate, bytesize)