This commit is contained in:
tillraab 2019-09-19 12:11:41 +02:00
parent 2ea0184553
commit 65b235cb89

View File

@ -351,6 +351,7 @@ def main():
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'down'])
GPIO.output(LED2_pin, GPIO.LOW)
disp_eth_power = False
last_button_2_t = time()
elif disp_eth_power == False:
subprocess.run(['tvservice', '-p'])
@ -361,6 +362,7 @@ def main():
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'up'])
GPIO.output(LED2_pin, GPIO.HIGH)
disp_eth_power = True
last_button_2_t = time()
# Get the status of the background operation
status, transfer_status = ai_device.get_scan_status()