/Modules/PowerSupply/SUPERCAP01A/SW/SUPERCAP.py
14,7 → 14,7
stav = gpio.digitalRead(88)
 
if oldstav == 0 and stav == 0:
subprocess.call("shutdown -P 1", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
subprocess.call("shutdown -P 0", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
else:
print "power is OK."