Browse Source

Fix M851

Minor change missing in the process of standardize the gcode M851
Juan Ricardo Gomez Anaya 9 years ago
parent
commit
c475291e19
1 changed files with 4 additions and 6 deletions
  1. 4
    6
      Marlin/Marlin_main.cpp

+ 4
- 6
Marlin/Marlin_main.cpp View File

227
  * M665 - Set delta configurations: L<diagonal rod> R<delta radius> S<segments/s>
227
  * M665 - Set delta configurations: L<diagonal rod> R<delta radius> S<segments/s>
228
  * M666 - Set delta endstop adjustment
228
  * M666 - Set delta endstop adjustment
229
  * M605 - Set dual x-carriage movement mode: S<mode> [ X<duplication x-offset> R<duplication temp offset> ]
229
  * M605 - Set dual x-carriage movement mode: S<mode> [ X<duplication x-offset> R<duplication temp offset> ]
230
+ * M851 - Set Z probe's Z offset (mm). Set to a negative value for probes that trigger below the nozzle.
230
  * M907 - Set digital trimpot motor current using axis codes.
231
  * M907 - Set digital trimpot motor current using axis codes.
231
  * M908 - Control digital trimpot directly.
232
  * M908 - Control digital trimpot directly.
232
  * M909 - DAC_STEPPER_CURRENT: Print digipot/DAC current value
233
  * M909 - DAC_STEPPER_CURRENT: Print digipot/DAC current value
245
  *
246
  *
246
  * ************ Custom codes - This can change to suit future G-code regulations
247
  * ************ Custom codes - This can change to suit future G-code regulations
247
  * M100 - Watch Free Memory (For Debugging Only)
248
  * M100 - Watch Free Memory (For Debugging Only)
248
- * M851 - Set Z probe's Z offset (mm above extruder -- The value will always be negative)
249
-
250
-
251
  * M928 - Start SD logging (M928 filename.g) - ended by M29
249
  * M928 - Start SD logging (M928 filename.g) - ended by M29
252
  * M999 - Restart after being stopped by error
250
  * M999 - Restart after being stopped by error
253
  *
251
  *
7363
           break;
7361
           break;
7364
       #endif
7362
       #endif
7365
 
7363
 
7366
-      #ifdef CUSTOM_M_CODE_SET_Z_PROBE_OFFSET
7367
-        case CUSTOM_M_CODE_SET_Z_PROBE_OFFSET:
7364
+      #if HAS_BED_PROBE
7365
+        case 851:
7368
           gcode_M851();
7366
           gcode_M851();
7369
           break;
7367
           break;
7370
-      #endif // CUSTOM_M_CODE_SET_Z_PROBE_OFFSET
7368
+      #endif // HAS_BED_PROBE
7371
 
7369
 
7372
       #if ENABLED(FILAMENTCHANGEENABLE)
7370
       #if ENABLED(FILAMENTCHANGEENABLE)
7373
         case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
7371
         case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]

Loading…
Cancel
Save