optimisation: make clock_interval static and 1 byte
Change in memory: Flash: -16 bytes SRAM: -1 byte
This commit is contained in:
parent
66e629ba74
commit
ab934f8ba5
|
|
@ -50,7 +50,6 @@
|
|||
|
||||
#include "Prusa_farm.h"
|
||||
|
||||
int clock_interval = 0;
|
||||
static void lcd_sd_updir();
|
||||
static void lcd_mesh_bed_leveling_settings();
|
||||
#ifdef LCD_BL_PIN
|
||||
|
|
@ -451,6 +450,7 @@ void lcdui_print_cmd_diag(void)
|
|||
// Print time (8 chars total)
|
||||
void lcdui_print_time(void)
|
||||
{
|
||||
static uint8_t clock_interval; // max value is 10: CLOCK_INTERVAL_TIME * 2
|
||||
//if remaining print time estimation is available print it else print elapsed time
|
||||
int chars = 0;
|
||||
if (printer_active()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue