Browse Source

Assert that XY probe offsets are integers

Scott Lahteine 7 years ago
parent
commit
bf7d0ba859
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

823
     #error "Z_PROBE_LOW_POINT must be less than or equal to 0."
823
     #error "Z_PROBE_LOW_POINT must be less than or equal to 0."
824
   #endif
824
   #endif
825
 
825
 
826
+  static_assert(int(X_PROBE_OFFSET_FROM_EXTRUDER) == (X_PROBE_OFFSET_FROM_EXTRUDER), "X_PROBE_OFFSET_FROM_EXTRUDER must be an integer value.");
827
+  static_assert(int(Y_PROBE_OFFSET_FROM_EXTRUDER) == (Y_PROBE_OFFSET_FROM_EXTRUDER), "Y_PROBE_OFFSET_FROM_EXTRUDER must be an integer value.");
828
+
826
 #else
829
 #else
827
 
830
 
828
   /**
831
   /**

Loading…
Cancel
Save