ticker process closed when screen turned off
This commit is contained in:
parent
d9fad15db5
commit
1872899226
@ -206,13 +206,14 @@ def stop():
|
||||
ticker.sendline('K')
|
||||
|
||||
if not displaying_screensaver:
|
||||
time.sleep(1) # give time for leds to turn off
|
||||
ticker.close()
|
||||
else:
|
||||
screensaver_p.close()
|
||||
|
||||
if not ticker_stopped:
|
||||
|
||||
time.sleep(2) # give time for leds to turn off
|
||||
time.sleep(1) # give time for leds to turn off
|
||||
ticker.close()
|
||||
ticker_stopped = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user