mirror of https://github.com/Desuuuu/klipper.git
mcu: Fix reserve pin check
Fix typo causing conflict with mcu name and constant name. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1856f95503
commit
84bae6ff41
|
@ -620,10 +620,10 @@ class MCU:
|
|||
["%s=%s" % (k, v) for k, v in self.get_constants().items()]))]
|
||||
logging.info("\n".join(log_info))
|
||||
ppins = self._printer.lookup_object('pins')
|
||||
for name, value in self.get_constants().items():
|
||||
if name.startswith("RESERVE_PINS_"):
|
||||
for cname, value in self.get_constants().items():
|
||||
if cname.startswith("RESERVE_PINS_"):
|
||||
for pin in value.split(','):
|
||||
ppins.reserve_pin(name, pin, name[14:])
|
||||
ppins.reserve_pin(name, pin, cname[13:])
|
||||
self._mcu_freq = self.get_constant_float('CLOCK_FREQ')
|
||||
self._stats_sumsq_base = self.get_constant_float('STATS_SUMSQ_BASE')
|
||||
self._emergency_stop_cmd = self.lookup_command("emergency_stop")
|
||||
|
|
|
@ -54,7 +54,7 @@ min_temp: 0
|
|||
max_temp: 130
|
||||
|
||||
[temperature_fan test_max6675]
|
||||
pin: ar1
|
||||
pin: ar9
|
||||
min_temp: 0
|
||||
max_temp: 100
|
||||
control: watermark
|
||||
|
|
Loading…
Reference in New Issue