aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-03-29 15:49:20 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-04-02 13:43:01 -0400
commit3cfc42e54ab097b2634cdf70cce8f9f6dc8f7572 (patch)
tree826aadc7abe8b65f9f82b4727de9ac9bae5f12c5 /klippy
parent2a9a133f3685b41bf57e6bb9c28ab3b689d90e5c (diff)
downloadkutter-3cfc42e54ab097b2634cdf70cce8f9f6dc8f7572.tar.gz
kutter-3cfc42e54ab097b2634cdf70cce8f9f6dc8f7572.tar.xz
kutter-3cfc42e54ab097b2634cdf70cce8f9f6dc8f7572.zip
bltouch: Minor indentation change
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/bltouch.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py
index 2d0be3d8..6415ce1a 100644
--- a/klippy/extras/bltouch.py
+++ b/klippy/extras/bltouch.py
@@ -48,9 +48,8 @@ class BLTouchEndstopWrapper:
mcu.register_config_callback(self._build_config)
self.mcu_endstop = mcu.setup_pin('endstop', pin_params)
# output mode
- self.output_mode = config.getchoice('set_output_mode',
- {'5V': '5V', 'OD': 'OD',
- None: None}, None)
+ omodes = {'5V': '5V', 'OD': 'OD', None: None}
+ self.output_mode = config.getchoice('set_output_mode', omodes, None)
# Setup for sensor test
self.next_test_time = 0.
self.pin_up_not_triggered = config.getboolean(