Parcourir la 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 il y a 3 ans
Parent
révision
6182849255
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      Marlin/src/inc/Conditionals_adv.h

+ 1
- 1
Marlin/src/inc/Conditionals_adv.h Voir le fichier

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

Chargement…
Annuler
Enregistrer