From cb77fab1fa32b58c3441c1704c8edc1da58bf006 Mon Sep 17 00:00:00 2001 From: Colin Domoney Date: Thu, 23 Apr 2020 08:12:28 +0100 Subject: [PATCH] Update automatic.py Only update the fan if we're armed, not in manual mode (fixes faulty manual button control) --- examples/automatic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/automatic.py b/examples/automatic.py index 846688f..c0262bd 100755 --- a/examples/automatic.py +++ b/examples/automatic.py @@ -146,8 +146,8 @@ def held_handler(): elif t <= args.off_threshold: enable = False - if set_fan(enable): - last_change = t + if set_fan(enable): + last_change = t if not args.noled: update_led_temperature(t)