gcode_process.c: sort M112.

Counting to numbers up to 300 is apparently not everyone's
business, he he. :-)
This commit is contained in:
Markus Hitter 2014-11-15 13:26:37 +01:00
parent 9fe9c919a4
commit b66ba4629a
1 changed files with 18 additions and 17 deletions

View File

@ -366,23 +366,6 @@ void process_gcode_command() {
serial_writestr_P(PSTR("\nstop\n"));
break;
case 112:
//? --- M112: Emergency Stop ---
//?
//? Example: M112
//?
//? Any moves in progress are immediately terminated, then RepRap shuts down. All motors and heaters are turned off.
//? It can be started again by pressing the reset button on the master microcontroller. See also M0.
//?
timer_stop();
queue_flush();
power_off();
cli();
for (;;)
wd_reset();
break;
case 6:
//? --- M6: tool change ---
//?
@ -544,6 +527,24 @@ void process_gcode_command() {
break;
#endif
case 112:
//? --- M112: Emergency Stop ---
//?
//? Example: M112
//?
//? Any moves in progress are immediately terminated, then the printer
//? shuts down. All motors and heaters are turned off. Only way to
//? restart is to press the reset button on the master microcontroller.
//? See also M0.
//?
timer_stop();
queue_flush();
power_off();
cli();
for (;;)
wd_reset();
break;
case 114:
//? --- M114: Get Current Position ---
//?