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:
Terje Io
2022-02-17 09:01:02 +01:00
parent fce9920936
commit 4ff8f1c5e7
6 changed files with 65 additions and 20 deletions
+5 -5
View File
@@ -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 ||