diff --git a/libraries/AC_Avoidance/AP_OAPathPlanner.cpp b/libraries/AC_Avoidance/AP_OAPathPlanner.cpp index a142a1773c..3913cc7192 100644 --- a/libraries/AC_Avoidance/AP_OAPathPlanner.cpp +++ b/libraries/AC_Avoidance/AP_OAPathPlanner.cpp @@ -240,7 +240,7 @@ void AP_OAPathPlanner::avoidance_thread() bool origin_set = false; while (!origin_set) { hal.scheduler->delay(500); - struct Location ekf_origin {}; + Location ekf_origin {}; { WITH_SEMAPHORE(AP::ahrs().get_semaphore()); origin_set = AP::ahrs().get_origin(ekf_origin);