mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-30 17:49:56 +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;
|
||||
|
||||
info_serial("%s limit on %s", reportAxisNameMsg(axis, gang_index), pin.name().c_str());
|
||||
|
||||
pin.setAttr(Pin::Attr::Input | Pin::Attr::ISR);
|
||||
bitnum_true(limit_mask, axis);
|
||||
if (gangConfig->_endstops->_hardLimits) {
|
||||
@@ -315,8 +317,6 @@ void limits_init() {
|
||||
} else {
|
||||
pin.detachInterrupt();
|
||||
}
|
||||
|
||||
info_serial("%s limit on %s", reportAxisNameMsg(axis, gang_index), pin.name().c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user