Reference fix in check_wifi
This commit is contained in:
@@ -172,7 +172,7 @@ def connect_wifi(ssid, password, timeout_s=15):
|
|||||||
|
|
||||||
|
|
||||||
def check_wifi():
|
def check_wifi():
|
||||||
global _last_wifi_check, _wifi_reconnect_delay_s
|
global _wifi_sta, _last_wifi_check, _wifi_reconnect_delay_s
|
||||||
now = utime.ticks_ms()
|
now = utime.ticks_ms()
|
||||||
if utime.ticks_diff(now, _last_wifi_check) < _wifi_check_interval_ms:
|
if utime.ticks_diff(now, _last_wifi_check) < _wifi_check_interval_ms:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user