mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Use 2 stop bits for the UART connection
This commit is contained in:
parent
fd44629c29
commit
e2a4521b7b
@ -85,7 +85,7 @@ class Lora():
|
||||
if not self.uart:
|
||||
self.uart = UART(8, 19200)
|
||||
#self.uart = UART(1, 19200) # Use external module
|
||||
self.uart.init(19200, bits=8, parity=None, stop=1, timeout=250, timeout_char=100)
|
||||
self.uart.init(19200, bits=8, parity=None, stop=2, timeout=250, timeout_char=100)
|
||||
|
||||
|
||||
def debug_print(self, data):
|
||||
@ -323,4 +323,4 @@ class Lora():
|
||||
|
||||
if cmd.endswith('?'):
|
||||
return response.split('=')[1]
|
||||
return response
|
||||
return response
|
||||
|
||||
Loading…
Reference in New Issue
Block a user