Restore motor power, after it is disabled in tmc2130_get_wave(). This bug manifested itself as compiler warning:

sketch/tmc2130.cpp:827:10: warning: unused variable 'pwr' [-Wunused-variable]
This commit is contained in:
Marek Bel 2018-08-02 16:23:30 +02:00
parent 9f68681a1b
commit 3248d219f2

View file

@ -846,6 +846,7 @@ void tmc2130_get_wave(uint8_t axis, uint8_t* data, FILE* stream)
delayMicroseconds(100);
}
tmc2130_setup_chopper(axis, tmc2130_mres[axis], tmc2130_current_h[axis], tmc2130_current_r[axis]);
tmc2130_set_pwr(axis, pwr);
}
void tmc2130_set_wave(uint8_t axis, uint8_t amp, uint8_t fac1000)