From e2a4521b7b667e7584711720451e16886f5c388d Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Wed, 27 Jan 2021 17:38:11 +0100 Subject: [PATCH] Use 2 stop bits for the UART connection --- scripts/libraries/lora.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/libraries/lora.py b/scripts/libraries/lora.py index 417da6270..9c0d8b946 100644 --- a/scripts/libraries/lora.py +++ b/scripts/libraries/lora.py @@ -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 \ No newline at end of file + return response