|
@@ -838,7 +838,7 @@ void get_command() {
|
838
|
838
|
}
|
839
|
839
|
|
840
|
840
|
// If command was e-stop process now
|
841
|
|
- if (strcmp(command, "M112") == 0) kill();
|
|
841
|
+ if (strcmp(command, "M112") == 0) kill(PSTR(MSG_KILLED));
|
842
|
842
|
|
843
|
843
|
cmd_queue_index_w = (cmd_queue_index_w + 1) % BUFSIZE;
|
844
|
844
|
commands_in_queue += 1;
|
|
@@ -3593,7 +3593,7 @@ inline void gcode_M111() {
|
3593
|
3593
|
/**
|
3594
|
3594
|
* M112: Emergency Stop
|
3595
|
3595
|
*/
|
3596
|
|
-inline void gcode_M112() { kill(); }
|
|
3596
|
+inline void gcode_M112() { kill(PSTR(MSG_KILLED)); }
|
3597
|
3597
|
|
3598
|
3598
|
#ifdef BARICUDA
|
3599
|
3599
|
|
|
@@ -6244,7 +6244,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
6244
|
6244
|
|
6245
|
6245
|
millis_t ms = millis();
|
6246
|
6246
|
|
6247
|
|
- if (max_inactive_time && ms > previous_cmd_ms + max_inactive_time) kill();
|
|
6247
|
+ if (max_inactive_time && ms > previous_cmd_ms + max_inactive_time) kill(PSTR(MSG_KILLED));
|
6248
|
6248
|
|
6249
|
6249
|
if (stepper_inactive_time && ms > previous_cmd_ms + stepper_inactive_time
|
6250
|
6250
|
&& !ignore_stepper_queue && !blocks_queued())
|
|
@@ -6272,7 +6272,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
6272
|
6272
|
// Exceeded threshold and we can confirm that it was not accidental
|
6273
|
6273
|
// KILL the machine
|
6274
|
6274
|
// ----------------------------------------------------------------
|
6275
|
|
- if (killCount >= KILL_DELAY) kill();
|
|
6275
|
+ if (killCount >= KILL_DELAY) kill(PSTR(MSG_KILLED));
|
6276
|
6276
|
#endif
|
6277
|
6277
|
|
6278
|
6278
|
#if HAS_HOME
|
|
@@ -6373,11 +6373,11 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
6373
|
6373
|
check_axes_activity();
|
6374
|
6374
|
}
|
6375
|
6375
|
|
6376
|
|
-void kill()
|
6377
|
|
-{
|
|
6376
|
+void kill(const char *lcd_msg) {
|
|
6377
|
+ lcd_setalertstatuspgm(lcd_msg);
|
|
6378
|
+
|
6378
|
6379
|
cli(); // Stop interrupts
|
6379
|
6380
|
disable_all_heaters();
|
6380
|
|
-
|
6381
|
6381
|
disable_all_steppers();
|
6382
|
6382
|
|
6383
|
6383
|
#if HAS_POWER_SWITCH
|
|
@@ -6386,7 +6386,6 @@ void kill()
|
6386
|
6386
|
|
6387
|
6387
|
SERIAL_ERROR_START;
|
6388
|
6388
|
SERIAL_ERRORLNPGM(MSG_ERR_KILLED);
|
6389
|
|
- LCD_ALERTMESSAGEPGM(MSG_KILLED);
|
6390
|
6389
|
|
6391
|
6390
|
// FMC small patch to update the LCD before ending
|
6392
|
6391
|
sei(); // enable interrupts
|