Skip to content

Commit

Permalink
TMC2660 Try sending data with a dummy address
Browse files Browse the repository at this point in the history
  • Loading branch information
teemuatlut committed May 22, 2019
1 parent 109c0fc commit 769273c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source/TMC2660Stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void TMC2660Stepper::switchCSpin(bool state) {

uint32_t TMC2660Stepper::read() {
uint32_t response = 0UL;
uint32_t dummy = ((uint32_t)DRVCONF_register.address<<17) | DRVCONF_register.sr;
uint32_t dummy = 0b010UL<<17;
if (TMC_SW_SPI != NULL) {
switchCSpin(LOW);
response |= TMC_SW_SPI->transfer((dummy >> 16) & 0xFF);
Expand Down

0 comments on commit 769273c

Please sign in to comment.