1
0
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:
Mitch Bradley
2021-06-23 14:16:04 -10:00
parent 7fd1391712
commit c32e8a5e3c

View File

@@ -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());
}
}
}