This commit is contained in:
IrvingGao 2024-05-31 12:37:40 +08:00
parent ad1a9a06dd
commit da097b35d6
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ def check_wifi_connection():
sudo systemctl restart NetworkManager
'''
network_error_light()
subprocess.Popen('sudo reboot', shell=True)
subprocess.Popen('sudo systemctl restart NetworkManager', shell=True)
time.sleep(1)
return False, None
def scan_wifi():