save some memory in endstops
if(halt_flag) {
halt_flag= false;
THEKERNEL->call_event(ON_HALT, nullptr);
+ if(THEKERNEL->is_grbl_mode()) {
+ puts("ALARM: Abort during cycle\r\n");
+ } else {
+ puts("HALTED, M999 or $X to exit HALT state\r\n");
+ }
}
}
// if no pins defined then disable the module
if(endstops.empty()) return false;
+ homing_axis.shrink_to_fit();
+ endstops.shrink_to_fit();
+
get_global_configs();
if(limit_enabled) {
}
}
+ // saves some memory
+ homing_axis.shrink_to_fit();
+ endstops.shrink_to_fit();
+
// sets some endstop global configs applicable to all endstops
get_global_configs();