Silent/High Power mode switching with crashdetection.

This commit is contained in:
Robert Pelnar 2017-09-23 15:01:31 +02:00
parent d2ff47dac8
commit 89acf29247
4 changed files with 29 additions and 28 deletions

View file

@ -182,6 +182,7 @@ uint8_t tmc2130_sample_diag()
void tmc2130_st_isr(uint8_t last_step_mask)
{
if (tmc2130_mode == TMC2130_MODE_SILENT) return;
bool error = false;
uint8_t diag_mask = tmc2130_sample_diag();
for (uint8_t axis = X_AXIS; axis <= Y_AXIS; axis++)