Skip to content

Commit cb77fab

Browse files
authored
Update automatic.py
Only update the fan if we're armed, not in manual mode (fixes faulty manual button control)
1 parent 52361aa commit cb77fab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/automatic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ def held_handler():
146146
elif t <= args.off_threshold:
147147
enable = False
148148

149-
if set_fan(enable):
150-
last_change = t
149+
if set_fan(enable):
150+
last_change = t
151151

152152
if not args.noled:
153153
update_led_temperature(t)

0 commit comments

Comments
 (0)