From 84cabd38366c610e7bfded2395f87cbc3d290752 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 5 Apr 2019 15:19:53 +0200 Subject: [PATCH] Change busy_state type, save 340B of flash --- Firmware/Marlin.h | 2 +- Firmware/Marlin_main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Firmware/Marlin.h b/Firmware/Marlin.h index fd6121a0..08f7b4f2 100644 --- a/Firmware/Marlin.h +++ b/Firmware/Marlin.h @@ -469,7 +469,7 @@ extern uint8_t calc_percent_done(); #define KEEPALIVE_STATE(n) do { busy_state = n;} while (0) extern void host_keepalive(); //extern MarlinBusyState busy_state; -extern int busy_state; +extern int8_t busy_state; #ifdef TMC2130 diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index b4aeef15..4ca05d18 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -303,7 +303,7 @@ int fanSpeed=0; bool cancel_heatup = false ; -int busy_state = NOT_BUSY; +int8_t busy_state = NOT_BUSY; static long prev_busy_signal_ms = -1; uint8_t host_keepalive_interval = HOST_KEEPALIVE_INTERVAL; @@ -9615,7 +9615,7 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE)) //! Set void marlin_wait_for_click() { - int busy_state_backup = busy_state; + int8_t busy_state_backup = busy_state; KEEPALIVE_STATE(PAUSED_FOR_USER); lcd_consume_click(); while(!lcd_clicked())