Skip to content

Commit 058ebc3

Browse files
t3slaManuel Barraud
authored andcommitted
Shutdown led when --no-led is passed as args
1 parent f837be7 commit 058ebc3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/automatic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ def set_automatic(status):
9595
last_change = 0
9696
signal.signal(signal.SIGTERM, clean_exit)
9797

98+
if args.noled:
99+
led_busy.acquire()
100+
fanshim.set_light(0, 0, 0)
101+
led_busy.release()
98102

99103
t = get_cpu_temp()
100104
if t >= args.threshold:

0 commit comments

Comments
 (0)