Forráskód Böngészése

crashdetection limits changed (X=48, Y=64)

Robert Pelnar 6 éve
szülő
commit
c2710fea63
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      Firmware/tmc2130.cpp

+ 3 - 1
Firmware/tmc2130.cpp

@@ -239,7 +239,9 @@ void tmc2130_st_isr(uint8_t last_step_mask)
 		{
 			tmc2130_sg_cnt[axis] = tmc2130_sg_err[axis];
 			tmc2130_sg_change = true;
-			if (tmc2130_sg_err[axis] >= 32)
+			uint8_t sg_thr = 48;
+			if (axis == Y_AXIS) sg_thr = 64;
+			if (tmc2130_sg_err[axis] >= sg_thr)
 			{
 				tmc2130_sg_err[axis] = 0;
 				crash = true;