Skip to content

Commit

Permalink
AP_GPS: correct placement of voiding clause
Browse files Browse the repository at this point in the history
should be voided when no logging, not just on periph...
  • Loading branch information
peterbarker authored and rmackay9 committed Oct 9, 2023
1 parent e2531a9 commit 88dd813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_GPS/AP_GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,8 @@ void AP_GPS::update_instance(uint8_t instance)
if (data_should_be_logged && should_log()) {
Write_GPS(instance);
}
#else
(void)data_should_be_logged;
#endif

#ifndef HAL_BUILD_AP_PERIPH
Expand All @@ -1064,8 +1066,6 @@ void AP_GPS::update_instance(uint8_t instance)
AP::rtc().set_utc_usec(now, AP_RTC::SOURCE_GPS);
}
}
#else
(void)data_should_be_logged;
#endif
}

Expand Down

0 comments on commit 88dd813

Please sign in to comment.