Skip to content

Commit efe7ec2

Browse files
committed
Bug fix
1 parent 153f886 commit efe7ec2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

FunHouse_Motion_Outlet/code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def set_outlet_state(value):
2323
global last_pir_timestamp
2424
if value:
2525
funhouse.peripherals.dotstars.fill(0x00FF00)
26+
last_pir_timestamp = time.monotonic()
2627
else:
2728
funhouse.peripherals.dotstars.fill(0xFF0000)
2829
last_pir_timestamp = time.monotonic() - MOTION_TIMEOUT

0 commit comments

Comments
 (0)