From d6029b8cb8a20510b8881f966ff0ab409f529fff Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 11 Nov 2022 22:32:00 +0700 Subject: [PATCH] adjust lcd timing function --- kuukar/kuukar_nextion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kuukar/kuukar_nextion.py b/kuukar/kuukar_nextion.py index 02f6155..58eed47 100644 --- a/kuukar/kuukar_nextion.py +++ b/kuukar/kuukar_nextion.py @@ -51,10 +51,11 @@ class nextion: def __serial_reader(self) -> None: ser = self.device while True: - if self.allow_serial_read: + while self.allow_serial_read: buffer_length = ser.in_waiting if buffer_length > 0: self.handle_serial(self.read_serial()) + sleep(0.05) def read_serial(self) -> list: ser = self.device