Skip to content

Commit

Permalink
Merge pull request #4472 from gudnimg/mmu-menu-regression
Browse files Browse the repository at this point in the history
Fix regression in MMU enable menu
  • Loading branch information
3d-gussner authored Oct 30, 2023
2 parents 3b10c61 + 645b11e commit 6be5cb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4082,7 +4082,7 @@ static void menuitems_MMU_settings_common()
static void mmu_enable_switch()
{
uint8_t current_state = eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED);
// EEPROM update is handled by the stop and start functions.

if (current_state)
{
MMU2::mmu2.Stop();
Expand All @@ -4091,6 +4091,8 @@ static void mmu_enable_switch()
{
MMU2::mmu2.Start();
}

eeprom_toggle((uint8_t *)EEPROM_MMU_ENABLED);
}

static void SETTINGS_SILENT_MODE()
Expand Down

0 comments on commit 6be5cb3

Please sign in to comment.