mirror of
git://soft.sys114.com/klipper
synced 2026-02-12 12:20:27 +09:00
tmc2660: Minor indentation fix
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -186,8 +186,8 @@ class TMC2660:
|
|||||||
set_config_field(config, "SGT", 0)
|
set_config_field(config, "SGT", 0)
|
||||||
self.current = config.getfloat('run_current', minval=0.1,
|
self.current = config.getfloat('run_current', minval=0.1,
|
||||||
maxval=2.4)
|
maxval=2.4)
|
||||||
self.driver_cs = current_to_reg(self.current,
|
self.driver_cs = current_to_reg(self.current, self.sense_resistor,
|
||||||
self.sense_resistor, self.fields.get_field("VSENSE"))
|
self.fields.get_field("VSENSE"))
|
||||||
self.fields.set_field("CS", self.driver_cs)
|
self.fields.set_field("CS", self.driver_cs)
|
||||||
|
|
||||||
# Init Registers
|
# Init Registers
|
||||||
|
|||||||
Reference in New Issue
Block a user