From e068f66c260aa4d8fdd2bfe5c91a3ee9c8726bcd Mon Sep 17 00:00:00 2001 From: "Dirk O. Kaar" <19971886+dok-net@users.noreply.github.com> Date: Thu, 24 Oct 2019 19:32:45 +0200 Subject: [PATCH] [1.1.x] Fix compiler warning (#15642) --- Marlin/planner.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index e21c50126cb..3773436ad71 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -1169,8 +1169,11 @@ void Planner::recalculate() { * Maintain fans, paste extruder pressure, */ void Planner::check_axes_activity() { - unsigned char axis_active[NUM_AXIS] = { 0 }, - tail_fan_speed[FAN_COUNT]; + uint8_t axis_active[NUM_AXIS] = { 0 }; + + #if FAN_COUNT > 0 + uint8_t tail_fan_speed[FAN_COUNT] = { 0 }; + #endif #if ENABLED(BARICUDA) #if HAS_HEATER_1