Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elschnorro77 authored Apr 16, 2020
1 parent 8e46109 commit 692efa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def stop_hdd_led():

def start_hdd_led():
# Turn Raspi-LED off
off = 0
on = 1
if is_zero():
off = 1
os.system("sudo bash -c 'echo " + str(off) + " > /sys/class/leds/led0/brightness'") # green LED
on = 0
os.system("sudo bash -c 'echo " + str(on) + " > /sys/class/leds/led0/brightness'") # green LED
os.system("sudo bash -c 'echo mmc0 > /sys/class/leds/led0/trigger'") # green LED

def stop_led(gpio=21):
Expand Down

0 comments on commit 692efa2

Please sign in to comment.