Merge pull request #2145 from thinkyhead/gcode_folding

Indentation in process_commands
2.0.x
Scott Lahteine 10 years ago
commit c9141e604a

@ -5227,75 +5227,75 @@ void process_next_command() {
switch(command_code) { switch(command_code) {
case 'G': switch (codenum) { case 'G': switch (codenum) {
// G0, G1 // G0, G1
case 0: case 0:
case 1: case 1:
gcode_G0_G1(); gcode_G0_G1();
break;
// G2, G3
#ifndef SCARA
case 2: // G2 - CW ARC
case 3: // G3 - CCW ARC
gcode_G2_G3(codenum == 2);
break; break;
#endif
// G4 Dwell
case 4:
gcode_G4();
break;
#ifdef FWRETRACT // G2, G3
#ifndef SCARA
case 2: // G2 - CW ARC
case 3: // G3 - CCW ARC
gcode_G2_G3(codenum == 2);
break;
#endif
case 10: // G10: retract // G4 Dwell
case 11: // G11: retract_recover case 4:
gcode_G10_G11(codenum == 10); gcode_G4();
break; break;
#endif //FWRETRACT #ifdef FWRETRACT
case 28: // G28: Home all axes, one at a time
gcode_G28();
break;
#if defined(ENABLE_AUTO_BED_LEVELING) || defined(MESH_BED_LEVELING) case 10: // G10: retract
case 29: // G29 Detailed Z-Probe, probes the bed at 3 or more points. case 11: // G11: retract_recover
gcode_G29(); gcode_G10_G11(codenum == 10);
break; break;
#endif
#ifdef ENABLE_AUTO_BED_LEVELING #endif //FWRETRACT
#ifndef Z_PROBE_SLED case 28: // G28: Home all axes, one at a time
gcode_G28();
break;
case 30: // G30 Single Z Probe #if defined(ENABLE_AUTO_BED_LEVELING) || defined(MESH_BED_LEVELING)
gcode_G30(); case 29: // G29 Detailed Z-Probe, probes the bed at 3 or more points.
gcode_G29();
break; break;
#endif
#else // Z_PROBE_SLED #ifdef ENABLE_AUTO_BED_LEVELING
case 31: // G31: dock the sled #ifndef Z_PROBE_SLED
case 32: // G32: undock the sled
dock_sled(codenum == 31); case 30: // G30 Single Z Probe
gcode_G30();
break; break;
#endif // Z_PROBE_SLED #else // Z_PROBE_SLED
#endif // ENABLE_AUTO_BED_LEVELING case 31: // G31: dock the sled
case 32: // G32: undock the sled
dock_sled(codenum == 31);
break;
case 90: // G90 #endif // Z_PROBE_SLED
relative_mode = false;
break;
case 91: // G91
relative_mode = true;
break;
case 92: // G92 #endif // ENABLE_AUTO_BED_LEVELING
gcode_G92();
break;
default: code_is_good = false; case 90: // G90
relative_mode = false;
break;
case 91: // G91
relative_mode = true;
break;
case 92: // G92
gcode_G92();
break;
default: code_is_good = false;
} }
break; break;

Loading…
Cancel
Save