From 4b1536d62f2b5c5e0beb4692dbe4d0d1fa2bcb1b Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Sat, 4 Mar 2023 10:32:48 +0100 Subject: tmc: Beautify initialization code Purely esthetic. Make all tmc driver init code similar to one another. The various fields were grouped based on the register which they affect or the function they perform. Signed-off-by: Alex Voinea --- klippy/extras/tmc5160.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/tmc5160.py') diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py index e0db1434..b88b0f62 100644 --- a/klippy/extras/tmc5160.py +++ b/klippy/extras/tmc5160.py @@ -328,8 +328,8 @@ class TMC5160: # Setup basic register values tmc.TMCWaveTableHelper(config, self.mcu_tmc) tmc.TMCStealthchopHelper(config, self.mcu_tmc, TMC_FREQUENCY) - # CHOPCONF set_config_field = self.fields.set_config_field + # CHOPCONF set_config_field(config, "toff", 3) set_config_field(config, "hstrt", 5) set_config_field(config, "hend", 2) -- cgit v1.2.3-70-g09d2