AP_GPS: removed have_ekf_logging()

This commit is contained in:
Andrew Tridgell 2020-11-07 16:58:05 +11:00
parent 353ec29ab6
commit 6c4e552a0b
1 changed files with 1 additions and 2 deletions

View File

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