AP_Follow: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:05 +10:00 committed by Andrew Tridgell
parent f92b02afd0
commit 6627c1f4e4
1 changed files with 3 additions and 1 deletions

View File

@ -395,8 +395,9 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg)
break;
}
}
if (updated) {
#if HAL_LOGGING_ENABLED
// get estimated location and velocity
Location loc_estimate{};
Vector3f vel_estimate;
@ -431,6 +432,7 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg)
loc_estimate.lng,
loc_estimate.alt
);
#endif
}
}