From 4b7e5723ca1c2d4b18e452561b2c5a025e489eb2 Mon Sep 17 00:00:00 2001 From: BlueFox Date: Fri, 15 Nov 2024 22:28:35 +0100 Subject: [PATCH] Fixed small issue in an old call to time.sleep() which has been replaced by sleep() since a long time --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 31987f9..b907437 100644 --- a/__init__.py +++ b/__init__.py @@ -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