Guards for large BLOCK_BUFFER_SIZE (>=128) (#20130)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
FanDjango
2020-11-16 21:56:05 +01:00
committed by GitHub
parent e955dce3dc
commit 110e0d782f
3 changed files with 15 additions and 11 deletions

View File

@ -287,6 +287,10 @@ typedef struct {
#endif
} skew_factor_t;
#if ENABLED(DISABLE_INACTIVE_EXTRUDER)
typedef IF<(BLOCK_BUFFER_SIZE > 64), uint16_t, uint8_t>::type last_move_t;
#endif
class Planner {
public:
@ -435,7 +439,7 @@ class Planner {
#if ENABLED(DISABLE_INACTIVE_EXTRUDER)
// Counters to manage disabling inactive extruders
static uint8_t g_uc_extruder_last_move[EXTRUDERS];
static last_move_t g_uc_extruder_last_move[EXTRUDERS];
#endif
#if HAS_WIRED_LCD