File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ def _handle_disconnect_status(self):
249249 try :
250250 script_path = "/lib/thirdreality/resetupwifi.sh"
251251 if os .path .exists (script_path ):
252- self .logger .warning (f"Network disconnected: ({ self .disconnect_tick } ), triggering async { script_path } " )
252+ self .logger .warning (f"[!] Network disconnected: ({ self .disconnect_tick } ), triggering async { script_path } " )
253253 def _run_resetupwifi ():
254254 try :
255255 # Run asynchronously and detach outputs so failures won't affect main flow
@@ -262,7 +262,7 @@ def _run_resetupwifi():
262262 self .logger .info (f"resetupwifi.sh not found at { script_path } , skipping 30-minute action" )
263263 except Exception as e :
264264 self .logger .warning (f"Error scheduling 30-minute resetupwifi action: { e } " )
265- if self .disconnect_tick == 1440 :
265+ elif self .disconnect_tick == 1440 :
266266 #reboot the device
267267 self .logger .warning (f"Network disconnected: ({ self .disconnect_tick } ), rebooting the device" )
268268 self .supervisor .set_led_state (LedState .REBOOT )
You can’t perform that action at this time.
0 commit comments