mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-31 06:02:16 +00:00
parent
3e8a5b6151
commit
7fe07dc4ce
1 changed files with 6 additions and 3 deletions
|
@ -250,6 +250,12 @@ static FSTR_P pause_header() {
|
||||||
}while(0)
|
}while(0)
|
||||||
|
|
||||||
void menu_pause_option() {
|
void menu_pause_option() {
|
||||||
|
#if HAS_FILAMENT_SENSOR
|
||||||
|
const bool still_out = runout.filament_ran_out;
|
||||||
|
#else
|
||||||
|
constexpr bool still_out = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
START_MENU();
|
START_MENU();
|
||||||
#if LCD_HEIGHT > 2
|
#if LCD_HEIGHT > 2
|
||||||
STATIC_ITEM(MSG_FILAMENT_CHANGE_OPTION_HEADER);
|
STATIC_ITEM(MSG_FILAMENT_CHANGE_OPTION_HEADER);
|
||||||
|
@ -257,11 +263,8 @@ void menu_pause_option() {
|
||||||
ACTION_ITEM(MSG_FILAMENT_CHANGE_OPTION_PURGE, []{ pause_menu_response = PAUSE_RESPONSE_EXTRUDE_MORE; });
|
ACTION_ITEM(MSG_FILAMENT_CHANGE_OPTION_PURGE, []{ pause_menu_response = PAUSE_RESPONSE_EXTRUDE_MORE; });
|
||||||
|
|
||||||
#if HAS_FILAMENT_SENSOR
|
#if HAS_FILAMENT_SENSOR
|
||||||
const bool still_out = runout.filament_ran_out;
|
|
||||||
if (still_out)
|
if (still_out)
|
||||||
EDIT_ITEM(bool, MSG_RUNOUT_SENSOR, &runout.enabled, runout.reset);
|
EDIT_ITEM(bool, MSG_RUNOUT_SENSOR, &runout.enabled, runout.reset);
|
||||||
#else
|
|
||||||
constexpr bool still_out = false;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!still_out)
|
if (!still_out)
|
||||||
|
|
Loading…
Reference in a new issue