Add more comments

This commit is contained in:
Joshua Boniface 2017-06-03 03:03:54 -04:00
parent ea56bf5f04
commit 480df168f1
1 changed files with 2 additions and 2 deletions

4
bmcd
View File

@ -79,7 +79,7 @@ def locate_on():
def locate_off(): def locate_off():
is_pled_flashing.clear() is_pled_flashing.clear()
# Read a command from the pipe # Main loop to read a command from the pipe
def readcmd(): def readcmd():
fcmd = open(bmcd_cmd, 'r+', 0) fcmd = open(bmcd_cmd, 'r+', 0)
while True: while True:
@ -89,7 +89,7 @@ def readcmd():
except: except:
pass pass
# Main loop # Main loop to write power state to the pipe
def writestate(is_pled_flashing): def writestate(is_pled_flashing):
while True: while True:
state_now = GPIO.input(gpio_state) state_now = GPIO.input(gpio_state)