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

@ -558,7 +558,7 @@ void process_gcode_command() {
//? //?
break; break;
#ifdef DEBUG #ifdef DEBUG
case 111: case 111:
//? --- M111: Set Debug Level --- //? --- M111: Set Debug Level ---
//? //?
@ -578,7 +578,7 @@ void process_gcode_command() {
break; break;
debug_flags = next_target.S; debug_flags = next_target.S;
break; break;
#endif #endif /* DEBUG */
case 112: case 112:
//? --- M112: Emergency Stop --- //? --- M112: Emergency Stop ---
@ -619,21 +619,19 @@ void process_gcode_command() {
current_position.axis[Z], current_position.axis[E], current_position.axis[Z], current_position.axis[E],
current_position.F); current_position.F);
#ifdef DEBUG if (DEBUG_POSITION && (debug_flags & DEBUG_POSITION)) {
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}"),
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],
movebuffer[mb_tail].c, movebuffer[mb_tail].endpoint.axis[X], movebuffer[mb_tail].endpoint.axis[Y], movebuffer[mb_tail].endpoint.axis[Z],
movebuffer[mb_tail].endpoint.axis[Y], movebuffer[mb_tail].endpoint.axis[Z], movebuffer[mb_tail].endpoint.axis[E], movebuffer[mb_tail].endpoint.F,
movebuffer[mb_tail].endpoint.axis[E], movebuffer[mb_tail].endpoint.F, #ifdef ACCELERATION_REPRAP
#ifdef ACCELERATION_REPRAP movebuffer[mb_tail].end_c
movebuffer[mb_tail].end_c #else
#else movebuffer[mb_tail].c
movebuffer[mb_tail].c #endif
#endif );
); print_queue();
print_queue(); }
}
#endif /* DEBUG */
// newline is sent from gcode_parse after we return // newline is sent from gcode_parse after we return
break; break;
@ -771,7 +769,7 @@ void process_gcode_command() {
break; break;
#endif /* EECONFIG */ #endif /* EECONFIG */
#ifdef DEBUG #ifdef DEBUG
case 136: case 136:
//? --- M136: PRINT PID settings to host --- //? --- M136: PRINT PID settings to host ---
//? Undocumented. //? Undocumented.
@ -784,7 +782,7 @@ void process_gcode_command() {
#endif #endif
heater_print(next_target.P); heater_print(next_target.P);
break; break;
#endif #endif /* DEBUG */
case 140: case 140:
//? --- M140: Set heated bed temperature --- //? --- M140: Set heated bed temperature ---
@ -796,7 +794,7 @@ void process_gcode_command() {
#endif #endif
break; break;
#ifdef DEBUG #ifdef DEBUG
case 240: case 240:
//? --- M240: echo off --- //? --- M240: echo off ---
//? Disable echo. //? Disable echo.
@ -814,8 +812,7 @@ void process_gcode_command() {
serial_writestr_P(PSTR("Echo on")); serial_writestr_P(PSTR("Echo on"));
// newline is sent from gcode_parse after we return // newline is sent from gcode_parse after we return
break; break;
#endif /* DEBUG */
#endif /* DEBUG */
// unknown mcode: spit an error // unknown mcode: spit an error
default: default: