Quellcode durchsuchen
Do not warn about CONFIGURATION_EMBEDDING if it wasn't enabled (#23408)
Warnings.cpp was warning about `CONFIGURATION_EMBEDDING` on AVR boards even if it wasn't enabled. Check the status of the feature before auto-disabling and warning about it.
Jason Smith
vor 2 Jahren
Ursprung
Commit
6182849255
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
|
@@ -1006,7 +1006,7 @@
|
1006
|
1006
|
#endif
|
1007
|
1007
|
|
1008
|
1008
|
// AVR are (usually) too limited in resources to store the configuration into the binary
|
1009
|
|
-#if !defined(FORCE_CONFIG_EMBED) && (defined(__AVR__) || DISABLED(SDSUPPORT) || EITHER(SDCARD_READONLY, DISABLE_M503))
|
|
1009
|
+#if ENABLED(CONFIGURATION_EMBEDDING) && !defined(FORCE_CONFIG_EMBED) && (defined(__AVR__) || DISABLED(SDSUPPORT) || EITHER(SDCARD_READONLY, DISABLE_M503))
|
1010
|
1010
|
#undef CONFIGURATION_EMBEDDING
|
1011
|
1011
|
#define CANNOT_EMBED_CONFIGURATION defined(__AVR__)
|
1012
|
1012
|
#endif
|