Skip to content

Commit 7f66ca2

Browse files
authored
Merge pull request #902 from cogliano/master
Added delay for button press debounce
2 parents cb55882 + 5869d46 commit 7f66ca2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PyPortal_EZ_Make_Oven/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from adafruit_mcp9600 import MCP9600
1717

1818
TITLE = "EZ Make Oven Controller"
19-
VERSION = "1.0.0"
19+
VERSION = "1.0.1"
2020

2121
print(TITLE, "version ", VERSION)
2222
time.sleep(2)
@@ -532,6 +532,7 @@ def format_time(seconds):
532532
message.text = "Wait"
533533
button.label = "Wait"
534534
oven.set_state("wait")
535+
time.sleep(1) # for debounce
535536
if oven.sensor_status:
536537
if oven.state == "ready":
537538
status = "Ready"

0 commit comments

Comments
 (0)