mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-01 10:23:19 +02:00
Report limit pin before setting it up
so that, if the setup fails, you have a clue about which one.
This commit is contained in:
@@ -308,6 +308,8 @@ void limits_init() {
|
|||||||
}
|
}
|
||||||
Pin& pin = gangConfig->_endstops->_dual;
|
Pin& pin = gangConfig->_endstops->_dual;
|
||||||
|
|
||||||
|
info_serial("%s limit on %s", reportAxisNameMsg(axis, gang_index), pin.name().c_str());
|
||||||
|
|
||||||
pin.setAttr(Pin::Attr::Input | Pin::Attr::ISR);
|
pin.setAttr(Pin::Attr::Input | Pin::Attr::ISR);
|
||||||
bitnum_true(limit_mask, axis);
|
bitnum_true(limit_mask, axis);
|
||||||
if (gangConfig->_endstops->_hardLimits) {
|
if (gangConfig->_endstops->_hardLimits) {
|
||||||
@@ -315,8 +317,6 @@ void limits_init() {
|
|||||||
} else {
|
} else {
|
||||||
pin.detachInterrupt();
|
pin.detachInterrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
info_serial("%s limit on %s", reportAxisNameMsg(axis, gang_index), pin.name().c_str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user