From 26246b1f283e70b970cfa839f4f6467f8de12451 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 22 May 2018 22:05:37 -0400 Subject: [PATCH] tmc2130: Use an SPI rate of 4Mhz The spec recommends 4Mhz for SPI, so use that. Signed-off-by: Kevin O'Connor --- klippy/extras/tmc2130.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/tmc2130.py b/klippy/extras/tmc2130.py index 3e0f6d58..5974438d 100644 --- a/klippy/extras/tmc2130.py +++ b/klippy/extras/tmc2130.py @@ -21,7 +21,7 @@ class tmc2130: self.oid = self.mcu.create_oid() self.mcu.add_config_cmd( "config_spi oid=%d bus=%d pin=%s mode=%d rate=%d shutdown_msg=" % ( - self.oid, 0, cs_pin_params['pin'], 3, 3600000)) + self.oid, 0, cs_pin_params['pin'], 3, 4000000)) run_current = config.getfloat('run_current', above=0., maxval=2.) hold_current = config.getfloat('hold_current', run_current, above=0., maxval=2.)