Skip to content

Commit ee7bb9a

Browse files
authored
Merge pull request #41 from realPy/master
Shutdown led when --noled is passed as args
2 parents f837be7 + 058ebc3 commit ee7bb9a

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)