Skip to content

Commit

Permalink
Copter: avoid calling compiled-out method
Browse files Browse the repository at this point in the history
doesn't exist if harmonic notch compiled in
  • Loading branch information
peterbarker committed Jan 4, 2025
1 parent 38fe23f commit a0ab0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/Copter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const AP_Scheduler::Task Copter::scheduler_tasks[] = {
#if HAL_BUTTON_ENABLED
SCHED_TASK_CLASS(AP_Button, &copter.button, update, 5, 100, 168),
#endif
#if AP_INERTIALSENSOR_FAST_SAMPLE_WINDOW_ENABLED
#if AP_INERTIALSENSOR_FAST_SAMPLE_WINDOW_ENABLED && AP_INERTIALSENSOR_HARMONICNOTCH_ENABLED
// don't delete this, there is an equivalent (virtual) in AP_Vehicle for the non-rate loop case
SCHED_TASK(update_dynamic_notch_at_specified_rate_main, LOOP_RATE, 200, 215),
#endif
Expand Down

0 comments on commit a0ab0a6

Please sign in to comment.