/Modules/PowerSupply/SUPERCAP01A/SW/SUPERCAP.py |
---|
13,10 → 13,10 |
while True: |
stav = gpio.digitalRead(88) |
if stav != oldstav and stav == 0: |
if oldstav == 0 and stav == 0: |
subprocess.call("shutdown -P 1", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
oldstav = stav |
time.sleep(1) |
time.sleep(2) |