1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-24 12:35:51 +00:00

Write filler for disabled volumetrics

This commit is contained in:
Scott Lahteine 2018-01-03 20:40:59 -06:00
parent a4e0fd7883
commit 760c4e94d5

View File

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