cleanup: make heating_status_counter static
Change in memory: Flash: 0 bytes SRAM: 0 bytes
This commit is contained in:
parent
ab934f8ba5
commit
6e02a082e2
|
|
@ -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_filament_used has unit mm/100 or 10um
|
||||||
/// @param _total_print_time has unit minutes, for example 123 minutes
|
/// @param _total_print_time has unit minutes, for example 123 minutes
|
||||||
void save_statistics(uint32_t _total_filament_used, uint32_t _total_print_time);
|
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 bool fan_state[2];
|
||||||
extern int fan_edge_counter[2];
|
extern int fan_edge_counter[2];
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,6 @@ bool mesh_bed_leveling_flag = false;
|
||||||
|
|
||||||
uint32_t total_filament_used;
|
uint32_t total_filament_used;
|
||||||
HeatingStatus heating_status;
|
HeatingStatus heating_status;
|
||||||
uint8_t heating_status_counter;
|
|
||||||
bool loading_flag = false;
|
bool loading_flag = false;
|
||||||
|
|
||||||
#define XY_NO_RESTORE_FLAG (mesh_bed_leveling_flag || homing_flag)
|
#define XY_NO_RESTORE_FLAG (mesh_bed_leveling_flag || homing_flag)
|
||||||
|
|
|
||||||
|
|
@ -514,6 +514,7 @@ void lcdui_print_time(void)
|
||||||
|
|
||||||
//! @Brief Print status line on status screen
|
//! @Brief Print status line on status screen
|
||||||
void lcdui_print_status_line(void) {
|
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
|
if (heating_status != HeatingStatus::NO_HEATING) { // If heating flag, show progress of heating
|
||||||
heating_status_counter++;
|
heating_status_counter++;
|
||||||
if (heating_status_counter > 13) {
|
if (heating_status_counter > 13) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue