Merge pull request #2099 from thinkyhead/gcode_rename

Rename gCode to codenum as a consistency
master
Scott Lahteine 10 years ago
commit 80d2c11f9d

@ -5191,9 +5191,9 @@ void process_next_command() {
if (code_seen('G')) { if (code_seen('G')) {
int gCode = code_value_short(); int codenum = code_value_short();
switch(gCode) { switch (codenum) {
// G0, G1 // G0, G1
case 0: case 0:
@ -5205,7 +5205,7 @@ void process_next_command() {
#ifndef SCARA #ifndef SCARA
case 2: // G2 - CW ARC case 2: // G2 - CW ARC
case 3: // G3 - CCW ARC case 3: // G3 - CCW ARC
gcode_G2_G3(gCode == 2); gcode_G2_G3(codenum == 2);
break; break;
#endif #endif
@ -5218,7 +5218,7 @@ void process_next_command() {
case 10: // G10: retract case 10: // G10: retract
case 11: // G11: retract_recover case 11: // G11: retract_recover
gcode_G10_G11(gCode == 10); gcode_G10_G11(codenum == 10);
break; break;
#endif //FWRETRACT #endif //FWRETRACT
@ -5245,7 +5245,7 @@ void process_next_command() {
case 31: // G31: dock the sled case 31: // G31: dock the sled
case 32: // G32: undock the sled case 32: // G32: undock the sled
dock_sled(gCode == 31); dock_sled(codenum == 31);
break; break;
#endif // Z_PROBE_SLED #endif // Z_PROBE_SLED

Loading…
Cancel
Save