[wifi] fix connecting bugs
This commit is contained in:
1 parent
9dfd4f7c90
commit
190c5266e4
1 file changed
+4
@@ -176,6 +176,10 @@ def check_wifi_connection():
|
|||||||
if led_enabled:
|
if led_enabled:
|
||||||
orangepi.set_led_off('blue')
|
orangepi.set_led_off('blue')
|
||||||
return True, wifi_ssid
|
return True, wifi_ssid
|
||||||
|
elif len(columns) >= 4 and columns[2] == "connecting":
|
||||||
|
wifi_ssid = columns[4]
|
||||||
|
if led_enabled:
|
||||||
|
orangepi.set_led_on('blue')
|
||||||
return False, None
|
return False, None
|
||||||
|
|
||||||
def scan_wifi():
|
def scan_wifi():
|
||||||
|
|||||||
Reference in new issue
Block a user