mirror of
https://github.com/grblHAL/core.git
synced 2026-09-26 18:17:54 +08:00
Added a MPG mode option for using input pin for mode switching when enabled together with keypad plugin.
Added pin descriptions for UART pins used for MPG.
This commit is contained in:
+5
-5
@@ -407,11 +407,6 @@ bool protocol_exec_rt_system (void)
|
||||
|
||||
if (sys.rt_exec_alarm && (rt_exec = system_clear_exec_alarm())) { // Enter only if any bit flag is true
|
||||
|
||||
// System alarm. Everything has shutdown by something that has gone severely wrong. Report
|
||||
// the source of the error to the user. If critical, Grbl disables by entering an infinite
|
||||
// loop until system reset/abort.
|
||||
system_raise_alarm((alarm_code_t)rt_exec);
|
||||
|
||||
if(sys.rt_exec_state & EXEC_RESET) {
|
||||
// Kill spindle and coolant.
|
||||
killed = true;
|
||||
@@ -421,6 +416,11 @@ bool protocol_exec_rt_system (void)
|
||||
hal.driver_reset();
|
||||
}
|
||||
|
||||
// System alarm. Everything has shutdown by something that has gone severely wrong. Report
|
||||
// the source of the error to the user. If critical, Grbl disables by entering an infinite
|
||||
// loop until system reset/abort.
|
||||
system_raise_alarm((alarm_code_t)rt_exec);
|
||||
|
||||
// Halt everything upon a critical event flag. Currently hard and soft limits flag this.
|
||||
if ((alarm_code_t)rt_exec == Alarm_HardLimit ||
|
||||
(alarm_code_t)rt_exec == Alarm_SoftLimit ||
|
||||
|
||||
Reference in New Issue
Block a user