From 4e08e59c52769e37ebf342f509df6b35b5888a14 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Tue, 24 Sep 2024 18:36:28 -0700 Subject: [PATCH] support 4 channels --- firmware/pump_dac.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/firmware/pump_dac.cpp b/firmware/pump_dac.cpp index 9d6576f..4e2fa1f 100644 --- a/firmware/pump_dac.cpp +++ b/firmware/pump_dac.cpp @@ -30,9 +30,18 @@ static const PWMConfig pumpDacConfig = { static const uint8_t pumpDacPwmCh[] = { PUMP_DAC_PWM_CHANNEL_0, -#if (AFR_CHANNELS > 1) + +#if (AFR_CHANNELS >= 2) PUMP_DAC_PWM_CHANNEL_1, #endif + +#if (AFR_CHANNELS >= 3) + PUMP_DAC_PWM_CHANNEL_2, +#endif + +#if (AFR_CHANNELS >= 4) + PUMP_DAC_PWM_CHANNEL_3, +#endif }; static Pwm pumpDac(PUMP_DAC_PWM_DEVICE);