Update settings.cpp
This commit is contained in:
@@ -3349,12 +3349,16 @@ void MarlinSettings::reset() {
|
||||
#if HAS_HEATED_BED
|
||||
constexpr uint16_t bpre[] = { REPEAT2_S(1, INCREMENT(PREHEAT_COUNT), _PITEM, TEMP_BED) };
|
||||
#endif
|
||||
#if HAS_HEATED_CHAMBER
|
||||
constexpr uint16_t cpre[] = { REPEAT2_S(1, INCREMENT(PREHEAT_COUNT), _PITEM, TEMP_CHAMBER) };
|
||||
#endif
|
||||
#if HAS_FAN
|
||||
constexpr uint8_t fpre[] = { REPEAT2_S(1, INCREMENT(PREHEAT_COUNT), _PITEM, FAN_SPEED) };
|
||||
#endif
|
||||
for (uint8_t i = 0; i < PREHEAT_COUNT; ++i) {
|
||||
TERN_(HAS_HOTEND, ui.material_preset[i].hotend_temp = hpre[i]);
|
||||
TERN_(HAS_HEATED_BED, ui.material_preset[i].bed_temp = bpre[i]);
|
||||
TERN_(HAS_HEATED_CHAMBER, ui.material_preset[i].chamber_temp = cpre[i]);
|
||||
TERN_(HAS_FAN, ui.material_preset[i].fan_speed = fpre[i]);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user