AP_GPS: Take responsibility for logging the GPS if the EKF wants logging

This commit is contained in:
Michael du Breuil 2019-09-06 17:13:19 -07:00 committed by Andrew Tridgell
parent 7178655cbe
commit f857eb4640
1 changed files with 1 additions and 2 deletions

View File

@ -695,8 +695,7 @@ void AP_GPS::update_instance(uint8_t instance)
#ifndef HAL_BUILD_AP_PERIPH
if (data_should_be_logged &&
should_log() &&
!AP::ahrs().have_ekf_logging()) {
(should_log() || AP::ahrs().have_ekf_logging())) {
AP::logger().Write_GPS(instance);
}