Browse Source

Do the sanity check just once per build

Scott Lahteine 8 years ago
parent
commit
fa647cca23
2 changed files with 3 additions and 6 deletions
  1. 0
    1
      Marlin/MarlinConfig.h
  2. 3
    5
      Marlin/SanityCheck.cpp

+ 0
- 1
Marlin/MarlinConfig.h View File

@@ -35,6 +35,5 @@
35 35
 #endif
36 36
 #include "Arduino.h"
37 37
 #include "Conditionals_post.h"
38
-#include "SanityCheck.h"
39 38
 
40 39
 #endif // MARLIN_CONFIG_H

Marlin/SanityCheck.h → Marlin/SanityCheck.cpp View File

@@ -21,12 +21,12 @@
21 21
  */
22 22
 
23 23
 /**
24
- * SanityCheck.h
24
+ * SanityCheck.cpp
25 25
  *
26 26
  * Test configuration values for errors at compile-time.
27
+ * This is done only once, here, to speed up compilation time.
27 28
  */
28
-#ifndef SANITYCHECK_H
29
-#define SANITYCHECK_H
29
+#include "MarlinConfig.h"
30 30
 
31 31
 /**
32 32
  * Due to the high number of issues related with old versions of Arduino IDE
@@ -727,5 +727,3 @@
727 727
 #elif defined(HOMING_FEEDRATE)
728 728
   #error "HOMING_FEEDRATE is deprecated. Set individual rates with HOMING_FEEDRATE_(XY|Z|E) instead."
729 729
 #endif
730
-
731
-#endif //SANITYCHECK_H

Loading…
Cancel
Save