bf
This commit is contained in:
parent
2ea0184553
commit
65b235cb89
@ -351,6 +351,7 @@ def main():
|
|||||||
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'down'])
|
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'down'])
|
||||||
GPIO.output(LED2_pin, GPIO.LOW)
|
GPIO.output(LED2_pin, GPIO.LOW)
|
||||||
disp_eth_power = False
|
disp_eth_power = False
|
||||||
|
last_button_2_t = time()
|
||||||
|
|
||||||
elif disp_eth_power == False:
|
elif disp_eth_power == False:
|
||||||
subprocess.run(['tvservice', '-p'])
|
subprocess.run(['tvservice', '-p'])
|
||||||
@ -361,6 +362,7 @@ def main():
|
|||||||
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'up'])
|
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'up'])
|
||||||
GPIO.output(LED2_pin, GPIO.HIGH)
|
GPIO.output(LED2_pin, GPIO.HIGH)
|
||||||
disp_eth_power = True
|
disp_eth_power = True
|
||||||
|
last_button_2_t = time()
|
||||||
|
|
||||||
# Get the status of the background operation
|
# Get the status of the background operation
|
||||||
status, transfer_status = ai_device.get_scan_status()
|
status, transfer_status = ai_device.get_scan_status()
|
||||||
|
Loading…
Reference in New Issue
Block a user