fix(serialport): 优化串口通信异常处理
- 在 sendSerialPortCommand 和 stopSerialPortCommand函数中添加异常捕获
- 避免因输出流写入失败导致的程序崩溃
- 提高了串口通信的稳定性
1 parent 989c942 commit c76ca30ebe55fca7d97e40c67b07560de4a6cd0e
pengxianhong authored on 16 May
Showing 1 changed file
View
app/src/main/java/com/casic/common/detector/gd/base/SerialPortBaseActivity.kt