aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/replicape.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-06-17 13:49:05 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-06-17 13:49:05 -0400
commit11f04ba1bae774d32fd43bed4a0772c58d8df199 (patch)
tree7eec3a3fca5012f33602a9f0e434cd85ad1cb96b /klippy/extras/replicape.py
parent863a463cb2d07fce2ae09e2b0f925bdf201051dc (diff)
downloadkutter-11f04ba1bae774d32fd43bed4a0772c58d8df199.tar.gz
kutter-11f04ba1bae774d32fd43bed4a0772c58d8df199.tar.xz
kutter-11f04ba1bae774d32fd43bed4a0772c58d8df199.zip
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>
Diffstat (limited to 'klippy/extras/replicape.py')
-rw-r--r--klippy/extras/replicape.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/replicape.py b/klippy/extras/replicape.py
index ab501caf..f7f7bb64 100644
--- a/klippy/extras/replicape.py
+++ b/klippy/extras/replicape.py
@@ -160,7 +160,7 @@ class Replicape:
printer = config.get_printer()
ppins = printer.lookup_object('pins')
ppins.register_chip('replicape', self)
- revisions = {'B3': 'B3'}
+ revisions = ['B3']
config.getchoice('revision', revisions)
self.host_mcu = mcu.get_printer_mcu(printer, config.get('host_mcu'))
# Setup enable pin