Skip to content

Commit 1364928

Browse files
ellenspellensp
authored andcommitted
Fix UBL Debug Messages (MarlinFirmware#20423)
Co-authored-by: ellensp <ellensp@hotmsil.com>
1 parent a46b1e3 commit 1364928

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Marlin/src/module/settings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ void MarlinSettings::postprocess() {
563563
"ARCHIM2_SPI_FLASH_EEPROM_BACKUP_SIZE is insufficient to capture all EEPROM data.");
564564
#endif
565565

566-
//#define DEBUG_OUT 1
566+
#define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
567567
#include "../core/debug_out.h"
568568

569569
#if ENABLED(EEPROM_SETTINGS)
@@ -2294,14 +2294,14 @@ void MarlinSettings::postprocess() {
22942294

22952295
if (!ubl.sanity_check()) {
22962296
SERIAL_EOL();
2297-
#if ENABLED(EEPROM_CHITCHAT)
2297+
#if BOTH(EEPROM_CHITCHAT, DEBUG_LEVELING_FEATURE)
22982298
ubl.echo_name();
22992299
DEBUG_ECHOLNPGM(" initialized.\n");
23002300
#endif
23012301
}
23022302
else {
23032303
eeprom_error = true;
2304-
#if ENABLED(EEPROM_CHITCHAT)
2304+
#if BOTH(EEPROM_CHITCHAT, DEBUG_LEVELING_FEATURE)
23052305
DEBUG_ECHOPGM("?Can't enable ");
23062306
ubl.echo_name();
23072307
DEBUG_ECHOLNPGM(".");

0 commit comments

Comments
 (0)