support 4 channels

This commit is contained in:
Matthew Kennedy 2024-09-24 18:36:28 -07:00
parent 8688ed9e5e
commit 4e08e59c52
1 changed files with 10 additions and 1 deletions

View File

@ -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);