Fixed small issue in an old call to time.sleep() which has been replaced by sleep() since a long time

This commit is contained in:
BlueFox 2024-11-15 22:28:35 +01:00
parent 50e9b5211b
commit 4b7e5723ca
Signed by: BlueFox
GPG Key ID: 327233DA85435270

View File

@ -198,7 +198,7 @@ class lcdMenu:
# show a exit when there's no specific return value
if not return_value: # if the return value is None / nothing was returned -> show a closing message
while self.ok_btn.value() == 1: time.sleep(self.debounce_time) # wait till ok_btn release (e.g. if the "program" is a simple send action)
while self.ok_btn.value() == 1: sleep(self.debounce_time) # wait till ok_btn release (e.g. if the "program" is a simple send action)
self.lcd.move_to(0,0)
if self.lcd.num_lines == 4:
self.lcd.putstr(f"{self.fill_char*lw}{' '*lw*2}{self.fill_char*lw}") # fill the first and last line with 'fill_char's