mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 23:17:37 -06:00
klippy: Throw an exception if any required config parameter is missing
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
3806ed882a
commit
57244de37d
3 changed files with 33 additions and 24 deletions
|
@ -394,7 +394,7 @@ class MCU:
|
|||
|
||||
# Resolve pin names
|
||||
mcu = self.serial.msgparser.config['MCU']
|
||||
pin_map = self._config.get('pin_map')
|
||||
pin_map = self._config.get('pin_map', None)
|
||||
if pin_map is None:
|
||||
pnames = pins.mcu_to_pins(mcu)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue