mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-01 02:21:46 +02:00
Added homing_init_lock config item
This commit is contained in:
@@ -85,13 +85,10 @@ void grbl_init() {
|
||||
// NOTE: The startup script will run after successful completion of the homing cycle, but
|
||||
// not after disabling the alarm locks. Prevents motion startup blocks from crashing into
|
||||
// things uncontrollably. Very bad.
|
||||
#ifdef HOMING_INIT_LOCK
|
||||
// TODO: maybe HOMING_INIT_LOCK should be configurable
|
||||
// If there is an axis with homing configured, enter Alarm state on startup
|
||||
if (homingAxes()) {
|
||||
if (config->_homingInitLock && homingAxes()) {
|
||||
// If there is an axis with homing configured, enter Alarm state on startup
|
||||
sys.state = State::Alarm;
|
||||
}
|
||||
#endif
|
||||
grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Initializing spindle...");
|
||||
|
||||
#ifdef ENABLE_WIFI
|
||||
|
@@ -380,6 +380,7 @@ void MachineConfig::handle(Configuration::HandlerBase& handler) {
|
||||
handler.handle("verbose_errors", _verboseErrors);
|
||||
handler.handle("report_inches", _reportInches);
|
||||
// Spindles::SpindleFactory::handle(handler, _spindle);
|
||||
handler.handle("homing_init_lock", _homingInitLock);
|
||||
}
|
||||
|
||||
void MachineConfig::afterParse() {
|
||||
|
@@ -387,6 +387,7 @@ public:
|
||||
uint8_t _idleTime = 255;
|
||||
bool _verboseErrors = false;
|
||||
bool _reportInches = false;
|
||||
bool _homingInitLock = false;
|
||||
|
||||
String _board = "None";
|
||||
String _name = "None";
|
||||
|
Reference in New Issue
Block a user