gcode_process.c: remove a redundant #ifdef DEBUG and similar.

This commit is contained in:
Markus Hitter 2015-08-01 18:25:27 +02:00
parent 99fdb99203
commit 2af689a4db
1 changed files with 19 additions and 22 deletions

View File

@ -578,7 +578,7 @@ void process_gcode_command() {
break;
debug_flags = next_target.S;
break;
#endif
#endif /* DEBUG */
case 112:
//? --- M112: Emergency Stop ---
@ -619,7 +619,6 @@ void process_gcode_command() {
current_position.axis[Z], current_position.axis[E],
current_position.F);
#ifdef DEBUG
if (DEBUG_POSITION && (debug_flags & DEBUG_POSITION)) {
sersendf_P(PSTR(",c:%lu}\nEndpoint: X:%ld,Y:%ld,Z:%ld,E:%ld,F:%lu,c:%lu}"),
movebuffer[mb_tail].c, movebuffer[mb_tail].endpoint.axis[X],
@ -633,7 +632,6 @@ void process_gcode_command() {
);
print_queue();
}
#endif /* DEBUG */
// newline is sent from gcode_parse after we return
break;
@ -784,7 +782,7 @@ void process_gcode_command() {
#endif
heater_print(next_target.P);
break;
#endif
#endif /* DEBUG */
case 140:
//? --- M140: Set heated bed temperature ---
@ -814,7 +812,6 @@ void process_gcode_command() {
serial_writestr_P(PSTR("Echo on"));
// newline is sent from gcode_parse after we return
break;
#endif /* DEBUG */
// unknown mcode: spit an error