Change busy_state type, save 340B of flash

This commit is contained in:
Marek Bel 2019-04-05 15:19:53 +02:00
parent bf57a59147
commit 84cabd3836
2 changed files with 3 additions and 3 deletions

View File

@ -469,7 +469,7 @@ extern uint8_t calc_percent_done();
#define KEEPALIVE_STATE(n) do { busy_state = n;} while (0) #define KEEPALIVE_STATE(n) do { busy_state = n;} while (0)
extern void host_keepalive(); extern void host_keepalive();
//extern MarlinBusyState busy_state; //extern MarlinBusyState busy_state;
extern int busy_state; extern int8_t busy_state;
#ifdef TMC2130 #ifdef TMC2130

View File

@ -303,7 +303,7 @@ int fanSpeed=0;
bool cancel_heatup = false ; bool cancel_heatup = false ;
int busy_state = NOT_BUSY; int8_t busy_state = NOT_BUSY;
static long prev_busy_signal_ms = -1; static long prev_busy_signal_ms = -1;
uint8_t host_keepalive_interval = HOST_KEEPALIVE_INTERVAL; uint8_t host_keepalive_interval = HOST_KEEPALIVE_INTERVAL;
@ -9615,7 +9615,7 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
//! Set //! Set
void marlin_wait_for_click() void marlin_wait_for_click()
{ {
int busy_state_backup = busy_state; int8_t busy_state_backup = busy_state;
KEEPALIVE_STATE(PAUSED_FOR_USER); KEEPALIVE_STATE(PAUSED_FOR_USER);
lcd_consume_click(); lcd_consume_click();
while(!lcd_clicked()) while(!lcd_clicked())