Fix a bug where Load filament menu disappears

Kudos to @3d-gussner for finding the issue

Steps to reproduce:
1. reset printer
2. select Load filament
3. go back to main
4. LCD menu is very limited
5. To get all menus back select 6. Preheat
7. back to main

This commit is my proposed fix.

When eFilamentAction is equal to
FilamentAction::Load we must reset it to FilamentAction::None
when the Back button in Load Filament is selected

Change in memory:
Flash: -26 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-08-04 10:12:21 +00:00 committed by DRracer
parent 3766aadd99
commit 1bf33bd1aa
1 changed files with 2 additions and 7 deletions

View File

@ -1833,13 +1833,8 @@ switch(eFilamentAction)
void mFilamentBack()
{
if (eFilamentAction == FilamentAction::AutoLoad ||
eFilamentAction == FilamentAction::Preheat ||
eFilamentAction == FilamentAction::Lay1Cal)
{
// filament action has been cancelled
eFilamentAction = FilamentAction::None;
}
// filament action has been cancelled
eFilamentAction = FilamentAction::None;
}
void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)