removedsudo, causing crash
This commit is contained in:
parent
b1add6ae8d
commit
9e029407de
@ -1384,11 +1384,11 @@ def screensaver():
|
|||||||
elif "Grayscale Block" in data:
|
elif "Grayscale Block" in data:
|
||||||
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 5")
|
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 5")
|
||||||
elif "Clock 1" in data:
|
elif "Clock 1" in data:
|
||||||
screensaver_p = pexpect.spawn("sudo python3 clock_screensaver.py")
|
screensaver_p = pexpect.spawn("python3 clock_screensaver.py")
|
||||||
elif "Clock 2" in data:
|
elif "Clock 2" in data:
|
||||||
screensaver_p = pexpect.spawn("sudo python3 clock_screensaver2.py")
|
screensaver_p = pexpect.spawn("python3 clock_screensaver2.py")
|
||||||
elif "World Clock" in data:
|
elif "World Clock" in data:
|
||||||
screensaver_p = pexpect.spawn("sudo python3 world_clock2.py")
|
screensaver_p = pexpect.spawn("python3 world_clock2.py")
|
||||||
elif "Sleep" in data:
|
elif "Sleep" in data:
|
||||||
screensaver_p = DummyProcess()
|
screensaver_p = DummyProcess()
|
||||||
else: #default in case user hasnt set one yet
|
else: #default in case user hasnt set one yet
|
||||||
|
Loading…
Reference in New Issue
Block a user