AP_Logger: ifdef out _need_rtc_update

This commit is contained in:
Andrew Tridgell 2019-07-16 09:39:49 +10:00
parent 4418495c99
commit 66dc36ef88
2 changed files with 4 additions and 0 deletions

View File

@ -884,9 +884,11 @@ uint16_t AP_Logger_File::start_new_log(void)
return 0xFFFF;
}
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
// remember if we had utc time when we opened the file
uint64_t utc_usec;
_need_rtc_update = !AP::rtc().get_utc_usec(utc_usec);
#endif
EXPECT_DELAY_MS(3000);
#if HAL_OS_POSIX_IO

View File

@ -67,7 +67,9 @@ private:
int _write_fd;
char *_write_filename;
uint32_t _last_write_ms;
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
bool _need_rtc_update;
#endif
int _read_fd;
uint16_t _read_fd_log_num;