Browse Source

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 years ago
parent
commit
6182849255
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/inc/Conditionals_adv.h

+ 1
- 1
Marlin/src/inc/Conditionals_adv.h View File

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

Loading…
Cancel
Save