Skip to content

Commit

Permalink
mcu: only report if it is non critical
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz committed Dec 11, 2024
1 parent f70b047 commit 37c619b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions klippy/mcu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,13 @@ def _check_serial_exists(self):
def _mcu_identify(self):
if self.is_non_critical and not self._check_serial_exists():
self.non_critical_disconnected = True
self._get_status_info["non_critical_disconnected"] = True
if self.is_non_critical:
self._get_status_info["non_critical_disconnected"] = True
return False
else:
self.non_critical_disconnected = False
self._get_status_info["non_critical_disconnected"] = False
if self.is_non_critical:
self._get_status_info["non_critical_disconnected"] = False
if self.is_fileoutput():
self._connect_file()
else:
Expand Down

0 comments on commit 37c619b

Please sign in to comment.