File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ def handler(signal_received, frame):
57
57
+ Fore .RESET
58
58
+ get_string ("goodbye" ),
59
59
"warning" )
60
-
60
+
61
+ if not "raspi_leds" in user_settings :
62
+ user_settings ["raspi_leds" ] = "y"
63
+
61
64
if running_on_rpi and user_settings ["raspi_leds" ] == "y" :
62
65
# Reset onboard status LEDs
63
66
os .system (
@@ -599,7 +602,10 @@ def _blink_builtin(led="green"):
599
602
sleep (0.1 )
600
603
os .system (
601
604
'echo 0 | sudo tee /sys/class/leds/led1/brightness >/dev/null 2>&1' )
602
-
605
+
606
+ if not "raspi_leds" in user_settings :
607
+ user_settings ["raspi_leds" ] = "y"
608
+
603
609
if type == "accept" :
604
610
if running_on_rpi and user_settings ["raspi_leds" ] == "y" :
605
611
_blink_builtin ()
@@ -1300,7 +1306,10 @@ def load():
1300
1306
1301
1307
Fasthash .load ()
1302
1308
Fasthash .init ()
1303
-
1309
+
1310
+ if not "raspi_leds" in user_settings :
1311
+ user_settings ["raspi_leds" ] = "y"
1312
+
1304
1313
if user_settings ["raspi_leds" ] == "y" :
1305
1314
try :
1306
1315
with io .open ('/sys/firmware/devicetree/base/model' , 'r' ) as m :
You can’t perform that action at this time.
0 commit comments