AP_HAL: fixed build on boards with no PWM

this impacts mRoNexus builds
This commit is contained in:
Andrew Tridgell 2021-06-01 12:59:46 +10:00
parent cf350a52e9
commit 606c248e69
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@
#endif
#ifndef HAL_DSHOT_ALARM
#if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD)
#if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD) && HAL_USE_PWM == TRUE
#define HAL_DSHOT_ALARM 1
#else
#define HAL_DSHOT_ALARM 0