/Modules/PowerSupply/SUPERCAP01A/SW/SUPERCAP.py
15,6 → 15,9
 
if oldstav == 0 and stav == 0:
subprocess.call("shutdown -P 1", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
else:
print "power is OK."
oldstav = stav
 
time.sleep(2)