|
@@ -60,18 +60,23 @@
|
60
|
60
|
#undef TEST4
|
61
|
61
|
|
62
|
62
|
/**
|
63
|
|
- * We try our best to include sanity checks for all changed configuration
|
64
|
|
- * directives because users have a tendency to use outdated config files with
|
65
|
|
- * the bleeding-edge source code, but sometimes this is not enough. This check
|
66
|
|
- * forces a minimum config file revision. Otherwise Marlin will not build.
|
|
63
|
+ * This is to alert you about non-matching versions of config files.
|
|
64
|
+ *
|
|
65
|
+ * You can edit the version tag in your old config files and try the build again.
|
|
66
|
+ * The checks below will alert you about options that need to be changed, but they won't
|
|
67
|
+ * tell you about new options that you might find useful. So it's recommended to transfer
|
|
68
|
+ * your settings to new Configuration files matching your Marlin version as soon as possible.
|
67
|
69
|
*/
|
68
|
70
|
#define HEXIFY(H) _CAT(0x,H)
|
69
|
71
|
#if !defined(CONFIGURATION_H_VERSION) || HEXIFY(CONFIGURATION_H_VERSION) < HEXIFY(REQUIRED_CONFIGURATION_H_VERSION)
|
70
|
|
- #error "You are using an old Configuration.h file, update it before building Marlin."
|
|
72
|
+ #error "Your Configuration.h file is for an old version of Marlin. Downgrade Marlin or upgrade your Configuration.h."
|
|
73
|
+#elif HEXIFY(CONFIGURATION_H_VERSION) > HEXIFY(REQUIRED_CONFIGURATION_H_VERSION)
|
|
74
|
+ #error "Your Configuration.h file is for a newer version of Marlin. Upgrade Marlin or downgrade your Configuration.h."
|
71
|
75
|
#endif
|
72
|
|
-
|
73
|
76
|
#if !defined(CONFIGURATION_ADV_H_VERSION) || HEXIFY(CONFIGURATION_ADV_H_VERSION) < HEXIFY(REQUIRED_CONFIGURATION_ADV_H_VERSION)
|
74
|
|
- #error "You are using an old Configuration_adv.h file, update it before building Marlin."
|
|
77
|
+ #error "Your Configuration_adv.h file is for an old version of Marlin. Downgrade Marlin or upgrade your Configuration_adv.h."
|
|
78
|
+#elif HEXIFY(CONFIGURATION_ADV_H_VERSION) > HEXIFY(REQUIRED_CONFIGURATION_ADV_H_VERSION)
|
|
79
|
+ #error "Your Configuration_adv.h file is for a newer version of Marlin. Upgrade Marlin or downgrade your Configuration_adv.h."
|
75
|
80
|
#endif
|
76
|
81
|
#undef HEXIFY
|
77
|
82
|
|