Use 2 stop bits for the UART connection

This commit is contained in:
Sebastian Romero 2021-01-27 17:38:11 +01:00 committed by GitHub
parent fd44629c29
commit e2a4521b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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