This commit is contained in:
IrvingGao committed 2024-05-31 12:37:40 +08:00
1 parent ad1a9a06dd
commit da097b35d6
1 file changed
+2 -1
+2 -1
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():