tmc2660: Minor indentation fix

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-03-08 11:20:32 -05:00
parent 89935c6831
commit 9c0cf829ee
1 changed files with 2 additions and 2 deletions

View File

@ -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