mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-16 07:49:58 +00:00
meshtimesync p1
This commit is contained in:
@@ -465,6 +465,12 @@ static void room_event_loop(void)
|
||||
* write here on the main thread instead. */
|
||||
if (events & MESH_EVENT_RTC_SAVE) {
|
||||
zephcore_rtc_save((uint32_t)atomic_get(&pending_rtc_epoch));
|
||||
#ifdef ZEPHCORE_LORA
|
||||
/* GPS just set the clock — arm the mesh time-sync drift envelope. */
|
||||
if (room_mesh_ptr) {
|
||||
room_mesh_ptr->noteGPSTimeSync();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user