Skip to content

Commit

Permalink
refuse reconnect for non critical mcu
Browse files Browse the repository at this point in the history
  • Loading branch information
pellcorp committed Dec 7, 2024
1 parent 50aacb5 commit 5772079
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions klippy/mcu.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,14 +714,7 @@ def handle_non_critical_disconnect(self):
self.gcode.respond_info(f"mcu: '{self._name}' disconnected!", log=True)

def non_critical_recon_event(self, eventtime):
success = self.recon_mcu()
if success:
self.gcode.respond_info(
f"mcu: '{self._name}' reconnected!", log=True
)
return self._reactor.NEVER
else:
return eventtime + self.reconnect_interval
return self._reactor.NEVER

def _send_config(self, prev_crc):
if not self._cached_init_state:
Expand Down

0 comments on commit 5772079

Please sign in to comment.