mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 21:43:16 -07:00
nvr: add support for UTC time sync
This commit is contained in:
@@ -280,7 +280,7 @@ rtc_start(nvr_t *nvr)
|
||||
struct tm tm;
|
||||
|
||||
/* Initialize the internal and chip times. */
|
||||
if (enable_sync) {
|
||||
if (enable_sync & TIME_SYNC_ENABLED) {
|
||||
/* Use the internal clock's time. */
|
||||
nvr_time_get(&tm);
|
||||
rtc_time_set(nvr->regs, &tm);
|
||||
|
||||
@@ -258,7 +258,7 @@ tc8521_start(nvr_t *nvr)
|
||||
struct tm tm;
|
||||
|
||||
/* Initialize the internal and chip times. */
|
||||
if (enable_sync) {
|
||||
if (enable_sync & TIME_SYNC_ENABLED) {
|
||||
/* Use the internal clock's time. */
|
||||
nvr_time_get(&tm);
|
||||
tc8521_time_set(nvr->regs, &tm);
|
||||
|
||||
Reference in New Issue
Block a user