cleanup: make heating_status_counter static

Change in memory:
Flash: 0 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-02-19 21:08:23 +00:00
parent ab934f8ba5
commit 6e02a082e2
3 changed files with 1 additions and 2 deletions

View File

@ -319,7 +319,6 @@ extern uint32_t total_filament_used; // mm/100 or 10um
/// @param _total_filament_used has unit mm/100 or 10um
/// @param _total_print_time has unit minutes, for example 123 minutes
void save_statistics(uint32_t _total_filament_used, uint32_t _total_print_time);
extern uint8_t heating_status_counter;
extern bool fan_state[2];
extern int fan_edge_counter[2];

View File

@ -183,7 +183,6 @@ bool mesh_bed_leveling_flag = false;
uint32_t total_filament_used;
HeatingStatus heating_status;
uint8_t heating_status_counter;
bool loading_flag = false;
#define XY_NO_RESTORE_FLAG (mesh_bed_leveling_flag || homing_flag)

View File

@ -514,6 +514,7 @@ void lcdui_print_time(void)
//! @Brief Print status line on status screen
void lcdui_print_status_line(void) {
static uint8_t heating_status_counter;
if (heating_status != HeatingStatus::NO_HEATING) { // If heating flag, show progress of heating
heating_status_counter++;
if (heating_status_counter > 13) {