Skip to content

Commit 9b00cf6

Browse files
claude fix for non critical mcu issue
1 parent f4c1141 commit 9b00cf6

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

klippy/extras/temperature_mcu.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,13 @@ def handle_mcu_identify(self):
6565
def _build_config(self):
6666
# Obtain mcu information
6767
mcu = self.mcu_adc.get_mcu()
68-
self.debug_read_cmd = mcu.lookup_query_command(
69-
"debug_read order=%c addr=%u", "debug_result val=%u")
68+
try:
69+
self.debug_read_cmd = mcu.lookup_query_command(
70+
"debug_read order=%c addr=%u", "debug_result val=%u")
71+
except Exception:
72+
if not getattr(mcu, 'is_non_critical', False):
73+
raise
74+
return
7075
self.mcu_type = mcu.get_constants().get("MCU", "")
7176
# Run MCU specific configuration
7277
cfg_funcs = [

0 commit comments

Comments
 (0)