desc:去掉打印,可能产生卡顿

main
xiaowusky 2 years ago
parent b28bd9881c
commit c49e13497f

@ -69,7 +69,8 @@ object ParseHelper {
} }
} }
} catch (e: Exception) { } catch (e: Exception) {
e.printStackTrace() // e.printStackTrace()
LogUtils.v("parse error, ${e.message}")
} }
} }
@ -168,6 +169,7 @@ object ParseHelper {
} }
} catch (e: Exception) { } catch (e: Exception) {
// e.printStackTrace() // e.printStackTrace()
LogUtils.v("uploadGasData error, ${e.message}")
} }
} }
} }

@ -20,7 +20,7 @@ class PlatformSerialPortHelper : ISerialPortHelper<SerialPort> {
mSerialPort = LztekUtil.getLztek()?.openSerialPort(portPath, baudrate) mSerialPort = LztekUtil.getLztek()?.openSerialPort(portPath, baudrate)
return mSerialPort return mSerialPort
} catch (e: IOException) { } catch (e: IOException) {
e.printStackTrace() // e.printStackTrace()
Log.e("SerialPortHelper", "open port error; " + e.message) Log.e("SerialPortHelper", "open port error; " + e.message)
} }
return null; return null;
@ -38,7 +38,7 @@ class PlatformSerialPortHelper : ISerialPortHelper<SerialPort> {
try { try {
mSerialPort?.close() mSerialPort?.close()
} catch (e: Exception) { } catch (e: Exception) {
e.printStackTrace() // e.printStackTrace()
Log.e("SerialPortHelper", "closePort error; " + e.message) Log.e("SerialPortHelper", "closePort error; " + e.message)
} }
} }

Loading…
Cancel
Save