Browse Source

Sanity check probe offsets must be integers

Scott Lahteine 6 years ago
parent
commit
4ef364a073
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Marlin/src/inc/SanityCheck.h

+ 3
- 0
Marlin/src/inc/SanityCheck.h View File

985
 
985
 
986
 #if HAS_BED_PROBE
986
 #if HAS_BED_PROBE
987
 
987
 
988
+  static_assert(FLOOR(float(X_PROBE_OFFSET_FROM_EXTRUDER)) == float(X_PROBE_OFFSET_FROM_EXTRUDER), "X_PROBE_OFFSET_FROM_EXTRUDER must be an integer!");
989
+  static_assert(FLOOR(float(Y_PROBE_OFFSET_FROM_EXTRUDER)) == float(Y_PROBE_OFFSET_FROM_EXTRUDER), "Y_PROBE_OFFSET_FROM_EXTRUDER must be an integer!");
990
+
988
   /**
991
   /**
989
    * Z_PROBE_SLED is incompatible with DELTA
992
    * Z_PROBE_SLED is incompatible with DELTA
990
    */
993
    */

Loading…
Cancel
Save