From 760c4e94d5f0f8bed66dcaf3fa3d92ac238456aa Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 3 Jan 2018 20:40:59 -0600 Subject: [PATCH] Write filler for disabled volumetrics --- Marlin/configuration_store.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Marlin/configuration_store.cpp b/Marlin/configuration_store.cpp index 35ca38f015..9f39d12517 100644 --- a/Marlin/configuration_store.cpp +++ b/Marlin/configuration_store.cpp @@ -587,6 +587,13 @@ void MarlinSettings::postprocess() { EEPROM_WRITE(dummy); } + #else + + const bool volumetric_enabled = false; + dummy = DEFAULT_NOMINAL_FILAMENT_DIA; + EEPROM_WRITE(volumetric_enabled); + for (uint8_t q = MAX_EXTRUDERS; q--;) EEPROM_WRITE(dummy); + #endif // @@ -1088,6 +1095,11 @@ void MarlinSettings::postprocess() { if (q < COUNT(planner.filament_size)) planner.filament_size[q] = dummy; } + #else + + EEPROM_READ(dummyb); + for (uint8_t q=MAX_EXTRUDERS; q--;) EEPROM_READ(dummy); + #endif //