diff --git a/app/netease_control_center_common_module/src/netease_control_center/modules/hardware/mcu_leds/atservice/uartdriver.go b/app/netease_control_center_common_module/src/netease_control_center/modules/hardware/mcu_leds/atservice/uartdriver.go index ef8cf1c..576fb82 100755 --- a/app/netease_control_center_common_module/src/netease_control_center/modules/hardware/mcu_leds/atservice/uartdriver.go +++ b/app/netease_control_center_common_module/src/netease_control_center/modules/hardware/mcu_leds/atservice/uartdriver.go @@ -56,15 +56,7 @@ func uartInit() error { return errors.New("port open error!") } else { flushUart() //flush uart data - sPort.Close() - sPort, err = serial.OpenPort(c) - if err != nil { - log.Println(log.ErrorLog, err) - return errors.New("port open error!") - } else { - flushUart() //flush uart data - go uartReadStart() - } + go uartReadStart() } return err