mirror of https://github.com/ArduPilot/ardupilot
AP_Logger: ifdef out _need_rtc_update
This commit is contained in:
parent
4418495c99
commit
66dc36ef88
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue