mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 23:24:01 -06:00
configfile: Allow getchoice() to take a list
If a list is passed to getchoice(), seamlessly convert it to a dict. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
863a463cb2
commit
11f04ba1ba
11 changed files with 12 additions and 11 deletions
|
@ -27,7 +27,7 @@ class HybridCoreXZKinematics:
|
|||
if config.has_section('dual_carriage'):
|
||||
dc_config = config.getsection('dual_carriage')
|
||||
# dummy for cartesian config users
|
||||
dc_config.getchoice('axis', {'x': 'x'}, default='x')
|
||||
dc_config.getchoice('axis', ['x'], default='x')
|
||||
# setup second dual carriage rail
|
||||
self.rails.append(stepper.PrinterRail(dc_config))
|
||||
self.rails[2].get_endstops()[0][0].add_stepper(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue