HAL_ChibiOS: fix for HAL_PWM_COUNT zero

reported by Mallikarjun
This commit is contained in:
Andrew Tridgell 2021-08-28 12:58:53 +10:00
parent 7f8b7b66a9
commit f4ad8f6ef5

View File

@ -131,6 +131,7 @@ void RCOutput::update_channel_masks() {
return;
}
#if HAL_PWM_COUNT > 0
for (uint8_t i=0; i<HAL_PWM_COUNT; i++) {
switch (_dshot_esc_type) {
case DSHOT_ESC_BLHELI:
@ -145,6 +146,7 @@ void RCOutput::update_channel_masks() {
break;
}
}
#endif
}
#endif // DISABLE_DSHOT