Bug fix
This commit is contained in:
parent
153f886ae7
commit
efe7ec20fd
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ def set_outlet_state(value):
|
||||||
global last_pir_timestamp
|
global last_pir_timestamp
|
||||||
if value:
|
if value:
|
||||||
funhouse.peripherals.dotstars.fill(0x00FF00)
|
funhouse.peripherals.dotstars.fill(0x00FF00)
|
||||||
|
last_pir_timestamp = time.monotonic()
|
||||||
else:
|
else:
|
||||||
funhouse.peripherals.dotstars.fill(0xFF0000)
|
funhouse.peripherals.dotstars.fill(0xFF0000)
|
||||||
last_pir_timestamp = time.monotonic() - MOTION_TIMEOUT
|
last_pir_timestamp = time.monotonic() - MOTION_TIMEOUT
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue