From 25b6bc2f73f8db0971c83abf8d1f94ac8c502268 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 16 Jul 2020 15:38:33 -0400 Subject: [PATCH] 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 --- klippy/mcu.py | 15 ++------------- 1 file 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')