From 25350dfbbc9af0f2f976834298761d82f2d25f61 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Fri, 26 Aug 2022 19:14:40 +0300 Subject: [PATCH] Remove unused variable bFilamentFirstRun flash: 0 RAM: -1 --- Firmware/Marlin_main.cpp | 1 - Firmware/ultralcd.cpp | 5 ----- Firmware/ultralcd.h | 1 - 3 files changed, 7 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 42de384b..b576a1b1 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -9746,7 +9746,6 @@ if(0) lcd_update_enable(true); */ eFilamentAction=FilamentAction::AutoLoad; - bFilamentFirstRun=false; if(target_temperature[0] >= extrude_min_temp){ bFilamentPreheatState=true; // mFilamentItem(target_temperature[0],target_temperature_bed); diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 9e692062..a61f8fdf 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -1833,7 +1833,6 @@ void lcd_set_filament_oq_meass() FilamentAction eFilamentAction=FilamentAction::None; // must be initialized as 'non-autoLoad' -bool bFilamentFirstRun; bool bFilamentPreheatState; bool bFilamentAction=false; static bool bFilamentWaitingFlag=false; @@ -2343,7 +2342,6 @@ static void lcd_menu_AutoLoadFilament() static void preheat_or_continue() { - bFilamentFirstRun = false; if (target_temperature[0] >= extrude_min_temp) { bFilamentPreheatState = true; @@ -5584,7 +5582,6 @@ static void mmu_cut_filament_menu() else { eFilamentAction=FilamentAction::MmuCut; - bFilamentFirstRun=false; if(target_temperature[0] >= extrude_min_temp) { bFilamentPreheatState=true; @@ -5983,10 +5980,8 @@ static void lcd_main_menu() else #endif //FILAMENT_SENSOR { - bFilamentFirstRun=true; MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_FILAMENT), lcd_LoadFilament); } - bFilamentFirstRun=true; MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), lcd_unLoadFilament); } MENU_ITEM_SUBMENU_P(_T(MSG_SETTINGS), lcd_settings_menu); diff --git a/Firmware/ultralcd.h b/Firmware/ultralcd.h index d3c94e89..e0a2e6e4 100755 --- a/Firmware/ultralcd.h +++ b/Firmware/ultralcd.h @@ -182,7 +182,6 @@ enum class FilamentAction : uint_least8_t }; extern FilamentAction eFilamentAction; -extern bool bFilamentFirstRun; extern bool bFilamentPreheatState; extern bool bFilamentAction; void mFilamentItem(uint16_t nTemp,uint16_t nTempBed);