Sfoglia il codice sorgente

Rename to codenum as a consistency

Scott Lahteine 10 anni fa
parent
commit
16032f149f
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5
    5
      Marlin/Marlin_main.cpp

+ 5
- 5
Marlin/Marlin_main.cpp Vedi File

5191
 
5191
 
5192
   if (code_seen('G')) {
5192
   if (code_seen('G')) {
5193
 
5193
 
5194
-    int gCode = code_value_short();
5194
+    int codenum = code_value_short();
5195
 
5195
 
5196
-    switch(gCode) {
5196
+    switch (codenum) {
5197
 
5197
 
5198
     // G0, G1
5198
     // G0, G1
5199
     case 0:
5199
     case 0:
5205
     #ifndef SCARA
5205
     #ifndef SCARA
5206
       case 2: // G2  - CW ARC
5206
       case 2: // G2  - CW ARC
5207
       case 3: // G3  - CCW ARC
5207
       case 3: // G3  - CCW ARC
5208
-        gcode_G2_G3(gCode == 2);
5208
+        gcode_G2_G3(codenum == 2);
5209
         break;
5209
         break;
5210
     #endif
5210
     #endif
5211
 
5211
 
5218
 
5218
 
5219
       case 10: // G10: retract
5219
       case 10: // G10: retract
5220
       case 11: // G11: retract_recover
5220
       case 11: // G11: retract_recover
5221
-        gcode_G10_G11(gCode == 10);
5221
+        gcode_G10_G11(codenum == 10);
5222
         break;
5222
         break;
5223
 
5223
 
5224
     #endif //FWRETRACT
5224
     #endif //FWRETRACT
5245
 
5245
 
5246
           case 31: // G31: dock the sled
5246
           case 31: // G31: dock the sled
5247
           case 32: // G32: undock the sled
5247
           case 32: // G32: undock the sled
5248
-            dock_sled(gCode == 31);
5248
+            dock_sled(codenum == 31);
5249
             break;
5249
             break;
5250
 
5250
 
5251
       #endif // Z_PROBE_SLED
5251
       #endif // Z_PROBE_SLED

Loading…
Annulla
Salva