Make bFilament variables static and move to top of file
This commit is contained in:
parent
68d902c4e1
commit
b9717b03e7
|
|
@ -57,6 +57,11 @@ static void lcd_mesh_bed_leveling_settings();
|
|||
static void lcd_backlight_menu();
|
||||
#endif
|
||||
|
||||
FilamentAction eFilamentAction=FilamentAction::None; // must be initialized as 'non-autoLoad'
|
||||
static bool bFilamentPreheatState;
|
||||
static bool bFilamentAction = false;
|
||||
static bool bFilamentWaitingFlag = false;
|
||||
|
||||
int8_t ReInitLCD = 0;
|
||||
uint8_t scrollstuff = 0;
|
||||
|
||||
|
|
@ -1756,11 +1761,6 @@ void lcd_cutter_enabled()
|
|||
}
|
||||
#endif //MMU_HAS_CUTTER
|
||||
|
||||
FilamentAction eFilamentAction=FilamentAction::None; // must be initialized as 'non-autoLoad'
|
||||
bool bFilamentPreheatState;
|
||||
bool bFilamentAction=false;
|
||||
static bool bFilamentWaitingFlag=false;
|
||||
|
||||
bool shouldPreheatOnlyNozzle() {
|
||||
uint8_t eeprom_setting = eeprom_read_byte((uint8_t*)EEPROM_HEAT_BED_ON_LOAD_FILAMENT);
|
||||
if (eeprom_setting != 0)
|
||||
|
|
|
|||
|
|
@ -194,8 +194,6 @@ enum class FilamentAction : uint_least8_t
|
|||
};
|
||||
|
||||
extern FilamentAction eFilamentAction;
|
||||
extern bool bFilamentPreheatState;
|
||||
extern bool bFilamentAction;
|
||||
void mFilamentItem(uint16_t nTemp,uint16_t nTempBed);
|
||||
void lcd_generic_preheat_menu();
|
||||
void unload_filament(float unloadLength);
|
||||
|
|
|
|||
Loading…
Reference in New Issue