Update btserver.py
This commit is contained in:
parent
efc02342e6
commit
19264b0232
@ -1,6 +1,9 @@
|
|||||||
#!python
|
#!python
|
||||||
#
|
#
|
||||||
# 2021 Zhengyu Peng
|
# Bluetooth server thread
|
||||||
|
# Monitor the Bluetooth connection and receive commands
|
||||||
|
#
|
||||||
|
# 2021 - PRESENT Zhengyu Peng
|
||||||
# Website: https://zpeng.me
|
# Website: https://zpeng.me
|
||||||
#
|
#
|
||||||
# ` `
|
# ` `
|
||||||
@ -97,7 +100,6 @@ class BluetoothServer(Thread):
|
|||||||
if data:
|
if data:
|
||||||
self.cmd_queue.put(data.decode())
|
self.cmd_queue.put(data.decode())
|
||||||
else:
|
else:
|
||||||
self.cmd_queue.put('standby')
|
|
||||||
break
|
break
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user