Browse Source

Change busy_state type, save 340B of flash

Marek Bel 5 years ago
parent
commit
84cabd3836
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Firmware/Marlin.h
  2. 2 2
      Firmware/Marlin_main.cpp

+ 1 - 1
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

+ 2 - 2
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())