Fix EEPROM array size bug (#16475)
This commit is contained in:
parent
994c695862
commit
d26c32375e
@ -1145,7 +1145,7 @@ void MarlinSettings::postprocess() {
|
|||||||
EEPROM_WRITE(planner.extruder_advance_K);
|
EEPROM_WRITE(planner.extruder_advance_K);
|
||||||
#else
|
#else
|
||||||
dummy = 0;
|
dummy = 0;
|
||||||
for (uint8_t q = _MIN(EXTRUDERS, 1); q--;) EEPROM_WRITE(dummy);
|
for (uint8_t q = _MAX(EXTRUDERS, 1); q--;) EEPROM_WRITE(dummy);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1934,7 +1934,7 @@ void MarlinSettings::postprocess() {
|
|||||||
// Linear Advance
|
// Linear Advance
|
||||||
//
|
//
|
||||||
{
|
{
|
||||||
float extruder_advance_K[_MIN(EXTRUDERS, 1)];
|
float extruder_advance_K[_MAX(EXTRUDERS, 1)];
|
||||||
_FIELD_TEST(planner_extruder_advance_K);
|
_FIELD_TEST(planner_extruder_advance_K);
|
||||||
EEPROM_READ(extruder_advance_K);
|
EEPROM_READ(extruder_advance_K);
|
||||||
#if ENABLED(LIN_ADVANCE)
|
#if ENABLED(LIN_ADVANCE)
|
||||||
|
Loading…
Reference in New Issue
Block a user