Browse Source

Fix a Serial+EEPROM compile error

Fixes #10278
Scott Lahteine 7 years ago
parent
commit
4c79dc1093
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      Marlin/src/module/configuration_store.cpp

+ 5
- 3
Marlin/src/module/configuration_store.cpp View File

1484
 
1484
 
1485
       eeprom_error = size_error(eeprom_index - (EEPROM_OFFSET));
1485
       eeprom_error = size_error(eeprom_index - (EEPROM_OFFSET));
1486
       if (eeprom_error) {
1486
       if (eeprom_error) {
1487
-        SERIAL_ECHO_START_P(port);
1488
-        SERIAL_ECHOPAIR_P(port, "Index: ", int(eeprom_index - (EEPROM_OFFSET)));
1489
-        SERIAL_ECHOLNPAIR_P(port, " Size: ", datasize());
1487
+        #if ENABLED(EEPROM_CHITCHAT)
1488
+          SERIAL_ECHO_START_P(port);
1489
+          SERIAL_ECHOPAIR_P(port, "Index: ", int(eeprom_index - (EEPROM_OFFSET)));
1490
+          SERIAL_ECHOLNPAIR_P(port, " Size: ", datasize());
1491
+        #endif
1490
       }
1492
       }
1491
       else if (working_crc != stored_crc) {
1493
       else if (working_crc != stored_crc) {
1492
         eeprom_error = true;
1494
         eeprom_error = true;

Loading…
Cancel
Save