adjust lcd timing function
This commit is contained in:
parent
e4821b3c6f
commit
d6029b8cb8
|
@ -51,10 +51,11 @@ class nextion:
|
||||||
def __serial_reader(self) -> None:
|
def __serial_reader(self) -> None:
|
||||||
ser = self.device
|
ser = self.device
|
||||||
while True:
|
while True:
|
||||||
if self.allow_serial_read:
|
while self.allow_serial_read:
|
||||||
buffer_length = ser.in_waiting
|
buffer_length = ser.in_waiting
|
||||||
if buffer_length > 0:
|
if buffer_length > 0:
|
||||||
self.handle_serial(self.read_serial())
|
self.handle_serial(self.read_serial())
|
||||||
|
sleep(0.05)
|
||||||
|
|
||||||
def read_serial(self) -> list:
|
def read_serial(self) -> list:
|
||||||
ser = self.device
|
ser = self.device
|
||||||
|
|
Loading…
Reference in New Issue