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()]))]
|
["%s=%s" % (k, v) for k, v in self.get_constants().items()]))]
|
||||||
logging.info("\n".join(log_info))
|
logging.info("\n".join(log_info))
|
||||||
ppins = self._printer.lookup_object('pins')
|
ppins = self._printer.lookup_object('pins')
|
||||||
for name, value in self.get_constants().items():
|
for cname, value in self.get_constants().items():
|
||||||
if name.startswith("RESERVE_PINS_"):
|
if cname.startswith("RESERVE_PINS_"):
|
||||||
for pin in value.split(','):
|
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._mcu_freq = self.get_constant_float('CLOCK_FREQ')
|
||||||
self._stats_sumsq_base = self.get_constant_float('STATS_SUMSQ_BASE')
|
self._stats_sumsq_base = self.get_constant_float('STATS_SUMSQ_BASE')
|
||||||
self._emergency_stop_cmd = self.lookup_command("emergency_stop")
|
self._emergency_stop_cmd = self.lookup_command("emergency_stop")
|
||||||
|
|
|
@ -54,7 +54,7 @@ min_temp: 0
|
||||||
max_temp: 130
|
max_temp: 130
|
||||||
|
|
||||||
[temperature_fan test_max6675]
|
[temperature_fan test_max6675]
|
||||||
pin: ar1
|
pin: ar9
|
||||||
min_temp: 0
|
min_temp: 0
|
||||||
max_temp: 100
|
max_temp: 100
|
||||||
control: watermark
|
control: watermark
|
||||||
|
|
Loading…
Reference in New Issue