aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-07-16 15:38:33 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-07-19 12:07:53 -0400
commit25b6bc2f73f8db0971c83abf8d1f94ac8c502268 (patch)
tree4f0a1ae1b75af2497a45a141915752615b9f5ddc /klippy
parent1c508c38aa424f914c4c9843330e0f4849e4d26f (diff)
downloadkutter-25b6bc2f73f8db0971c83abf8d1f94ac8c502268.tar.gz
kutter-25b6bc2f73f8db0971c83abf8d1f94ac8c502268.tar.xz
kutter-25b6bc2f73f8db0971c83abf8d1f94ac8c502268.zip
mcu: Remove undocumented "custom" config parameter
The "custom" config parameter is not documented and has not been recommended in years. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/mcu.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 16815548..72db5581 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -415,7 +415,6 @@ class MCU:
self._init_cmds = []
self._config_cmds = []
self._pin_map = config.get('pin_map', None)
- self._custom = config.get('custom', '')
self._mcu_freq = 0.
# Move command queuing
ffi_main, self._ffi_lib = chelper.get_ffi()
@@ -484,22 +483,12 @@ class MCU:
def dummy_estimated_print_time(eventtime):
return 0.
self.estimated_print_time = dummy_estimated_print_time
- def _add_custom(self):
- for line in self._custom.split('\n'):
- line = line.strip()
- cpos = line.find('#')
- if cpos >= 0:
- line = line[:cpos].strip()
- if not line:
- continue
- self.add_config_cmd(line)
def _send_config(self, prev_crc):
# Build config commands
for cb in self._config_callbacks:
cb()
- self._add_custom()
- self._config_cmds.insert(0, "allocate_oids count=%d" % (
- self._oid_count,))
+ self._config_cmds.insert(0, "allocate_oids count=%d"
+ % (self._oid_count,))
# Resolve pin names
mcu_type = self._serial.get_msgparser().get_constant('MCU')
ppins = self._printer.lookup_object('pins')