MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onTimeSynced

Function onTimeSynced

Tactility/Source/network/Ntp.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static void onTimeSynced(timeval* tv) {
43 LOGGER.info("Time synced ({})", tv->tv_sec);
44 processedSyncEvent = true;
45 esp_netif_sntp_deinit();
46 storeTimeInNvs();
47 kernel::publishSystemEvent(kernel::SystemEvent::Time);
48}
49
50void init() {
51 setTimeFromNvs();

Callers

nothing calls this directly

Calls 3

storeTimeInNvsFunction · 0.85
publishSystemEventFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected