Browse Source

Fix the sanity-check for config versions

Scott Lahteine 7 years ago
parent
commit
8c5bc77fb9
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/src/inc/SanityCheck.h

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

42
  * the bleeding-edge source code, but sometimes this is not enough. This check
42
  * the bleeding-edge source code, but sometimes this is not enough. This check
43
  * forces a minimum config file revision. Otherwise Marlin will not build.
43
  * forces a minimum config file revision. Otherwise Marlin will not build.
44
  */
44
  */
45
-#if !defined(CONFIGURATION_H_VERSION) || CONFIGURATION_H_VERSION < REQUIRED_CONFIGURATION_H_VERSION
45
+#define HEXIFY(H) _CAT(0x,H)
46
+#if !defined(CONFIGURATION_H_VERSION) || HEXIFY(CONFIGURATION_H_VERSION) < HEXIFY(REQUIRED_CONFIGURATION_H_VERSION)
46
   #error "You are using an old Configuration.h file, update it before building Marlin."
47
   #error "You are using an old Configuration.h file, update it before building Marlin."
47
 #endif
48
 #endif
48
 
49
 
49
-#if !defined(CONFIGURATION_ADV_H_VERSION) || CONFIGURATION_ADV_H_VERSION < REQUIRED_CONFIGURATION_ADV_H_VERSION
50
+#if !defined(CONFIGURATION_ADV_H_VERSION) || HEXIFY(CONFIGURATION_ADV_H_VERSION) < HEXIFY(REQUIRED_CONFIGURATION_ADV_H_VERSION)
50
   #error "You are using an old Configuration_adv.h file, update it before building Marlin."
51
   #error "You are using an old Configuration_adv.h file, update it before building Marlin."
51
 #endif
52
 #endif
52
 
53
 

Loading…
Cancel
Save