desc:串口代码

main
xiaowusky 2 years ago
parent b981573529
commit bdaa7da6ee

@ -48,10 +48,12 @@ object GasUtils {
GlobalScope.launch(Dispatchers.Default) { GlobalScope.launch(Dispatchers.Default) {
while (true) { while (true) {
delay(30000) delay(30000)
launch(Dispatchers.Main) {
openPorts() openPorts()
} }
} }
} }
}
private fun getCheckSum(bytes: ByteArray?): Byte { private fun getCheckSum(bytes: ByteArray?): Byte {

Loading…
Cancel
Save