From b66ba4629a95c246889616b7f896be0515a32d07 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sat, 15 Nov 2014 13:26:37 +0100 Subject: [PATCH] gcode_process.c: sort M112. Counting to numbers up to 300 is apparently not everyone's business, he he. :-) --- gcode_process.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index ed0848c..3b031dd 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -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 --- //?