Skip to content

Commit

Permalink
HAL_ChibiOS: fix for HAL_PWM_COUNT zero
Browse files Browse the repository at this point in the history
reported by Mallikarjun
  • Loading branch information
tridge committed Sep 1, 2021
1 parent 7f8b7b6 commit f4ad8f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/RCOutput_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -145,6 +146,7 @@ void RCOutput::update_channel_masks() {
break;
}
}
#endif
}

#endif // DISABLE_DSHOT
Expand Down

0 comments on commit f4ad8f6

Please sign in to comment.