diff --git a/libraries/AP_HAL_ChibiOS/RCOutput_serial.cpp b/libraries/AP_HAL_ChibiOS/RCOutput_serial.cpp index e6db93d673abc..2c405da11f247 100644 --- a/libraries/AP_HAL_ChibiOS/RCOutput_serial.cpp +++ b/libraries/AP_HAL_ChibiOS/RCOutput_serial.cpp @@ -131,6 +131,7 @@ void RCOutput::update_channel_masks() { return; } +#if HAL_PWM_COUNT > 0 for (uint8_t i=0; i