Add more comments
This commit is contained in:
parent
ea56bf5f04
commit
480df168f1
4
bmcd
4
bmcd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue