AP_Vehicle: correct AP_Filter defines

- checking the build type is very rarely used and definitely not required here
 - fix boilerplate to conform to normal pattern of including the config header and #if'ing based on the _ENABLED directly after that
This commit is contained in:
Peter Barker 2023-11-21 14:15:44 +11:00 committed by Peter Barker
parent 15e0f689c2
commit e806adb009
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ const AP_Scheduler::Task AP_Vehicle::scheduler_tasks[] = {
#if HAL_WITH_ESC_TELEM && HAL_GYROFFT_ENABLED
SCHED_TASK(check_motor_noise, 5, 50, 252),
#endif
#if AP_FILTER_ENABLED && !APM_BUILD_TYPE(APM_BUILD_AP_Periph)
#if AP_FILTER_ENABLED
SCHED_TASK_CLASS(AP_Filters, &vehicle.filters, update, 1, 100, 252),
#endif
SCHED_TASK(update_arming, 1, 50, 253),