Bläddra i källkod

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 3 år sedan
förälder
incheckning
6182849255
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      Marlin/src/inc/Conditionals_adv.h

+ 1
- 1
Marlin/src/inc/Conditionals_adv.h Visa fil

@@ -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

Laddar…
Avbryt
Spara