Merge pull request #4316 from gudnimg/fix-VERBOSE_CHECK_HIT_ENDSTOPS
Fix and optimise VERBOSE_CHECK_HIT_ENDSTOPS
This commit is contained in:
commit
f5259ee611
|
|
@ -189,20 +189,17 @@ void checkHitEndstops()
|
||||||
{
|
{
|
||||||
if(endstop_hit) {
|
if(endstop_hit) {
|
||||||
#ifdef VERBOSE_CHECK_HIT_ENDSTOPS
|
#ifdef VERBOSE_CHECK_HIT_ENDSTOPS
|
||||||
SERIAL_ECHO_START;
|
SERIAL_ECHO_START;
|
||||||
SERIAL_ECHORPGM(MSG_ENDSTOPS_HIT);
|
SERIAL_ECHORPGM(PSTR("Endstops Hit"));
|
||||||
if(endstop_hit & _BV(X_AXIS)) {
|
for (uint8_t axis = 0; axis < E_AXIS; axis++) // XYZ
|
||||||
SERIAL_ECHOPAIR(" X:",(float)endstops_trigsteps[X_AXIS]/cs.axis_steps_per_mm[X_AXIS]);
|
{
|
||||||
// LCD_MESSAGERPGM(CAT2((MSG_ENDSTOPS_HIT), PSTR("X")));
|
if(endstop_hit & _BV(axis)) {
|
||||||
}
|
SERIAL_ECHO(' ');
|
||||||
if(endstop_hit & _BV(Y_AXIS)) {
|
SERIAL_ECHO(char('X' + axis));
|
||||||
SERIAL_ECHOPAIR(" Y:",(float)endstops_trigsteps[Y_AXIS]/cs.axis_steps_per_mm[Y_AXIS]);
|
SERIAL_ECHO(':');
|
||||||
// LCD_MESSAGERPGM(CAT2((MSG_ENDSTOPS_HIT), PSTR("Y")));
|
SERIAL_ECHO(float(endstops_trigsteps[axis]) / cs.axis_steps_per_mm[axis]);
|
||||||
}
|
}
|
||||||
if(endstop_hit & _BV(Z_AXIS)) {
|
}
|
||||||
SERIAL_ECHOPAIR(" Z:",(float)endstops_trigsteps[Z_AXIS]/cs.axis_steps_per_mm[Z_AXIS]);
|
|
||||||
// LCD_MESSAGERPGM(CAT2((MSG_ENDSTOPS_HIT),PSTR("Z")));
|
|
||||||
}
|
|
||||||
SERIAL_ECHOLN("");
|
SERIAL_ECHOLN("");
|
||||||
#endif //VERBOSE_CHECK_HIT_ENDSTOPS
|
#endif //VERBOSE_CHECK_HIT_ENDSTOPS
|
||||||
endstop_hit = 0;
|
endstop_hit = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue