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