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