From 8688ed9e5ea07d67e8e692e89979d2adde9dc992 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Tue, 24 Sep 2024 18:36:14 -0700 Subject: [PATCH] support 4 channels --- firmware/heater_thread.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/firmware/heater_thread.cpp b/firmware/heater_thread.cpp index 156fdbcb..57d7201f 100644 --- a/firmware/heater_thread.cpp +++ b/firmware/heater_thread.cpp @@ -48,7 +48,15 @@ HeaterController heaterControllers[AFR_CHANNELS] = { 0, HEATER_PWM_CHANNEL_0 }, #if AFR_CHANNELS >= 2 - { 1, HEATER_PWM_CHANNEL_1 } + { 1, HEATER_PWM_CHANNEL_1 }, +#endif + +#if AFR_CHANNELS >= 3 + { 1, HEATER_PWM_CHANNEL_2 }, +#endif + +#if AFR_CHANNELS >= 4 + { 1, HEATER_PWM_CHANNEL_3 }, #endif };