fix(serialport): 修复串口数据发送时的异常处理
- 在 sendSerialPortCommand 和 stopSerialPortCommand 函数中添加了 try-catch 块 -捕获并处理 IOException 异常,避免应用崩溃 -优化了异常日志的输出,方便问题追踪 |
---|
|
app/src/main/java/com/casic/common/detector/gd/base/SerialPortBaseActivity.kt |
---|