Merge pull request #55 from XPila/MK3

Silent/High Power mode switching with crashdetection.
This commit is contained in:
XPila 2017-09-23 15:09:01 +02:00 committed by GitHub
commit 5649e7be9d
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++)