Save some PROGMEM with constexpr (#11798)
When possible, make `active_extruder` a `constexpr` to save some PROGMEM.
This commit is contained in:
@ -32,6 +32,7 @@
|
||||
|
||||
#include "../lcd/ultralcd.h"
|
||||
#include "../gcode/queue.h"
|
||||
#include "../module/motion.h"
|
||||
#include "../module/planner.h"
|
||||
#include "../module/printcounter.h"
|
||||
#include "../module/temperature.h"
|
||||
@ -43,8 +44,8 @@ job_recovery_info_t job_recovery_info;
|
||||
JobRecoveryPhase job_recovery_phase = JOB_RECOVERY_IDLE;
|
||||
uint8_t job_recovery_commands_count; //=0
|
||||
char job_recovery_commands[BUFSIZE + APPEND_CMD_COUNT][MAX_CMD_SIZE];
|
||||
// Extern
|
||||
extern uint8_t active_extruder, commands_in_queue, cmd_queue_index_r;
|
||||
|
||||
extern uint8_t commands_in_queue, cmd_queue_index_r;
|
||||
|
||||
#if ENABLED(DEBUG_POWER_LOSS_RECOVERY)
|
||||
void debug_print_job_recovery(const bool recovery) {
|
||||
|
Reference in New Issue
Block a user