nguyen hoang
/
Dot-Examples-Khang290319
publish
Diff: examples/inc/RadioEvent.h
- Revision:
- 42:67feacfab49c
- Parent:
- 41:3cb0ed329c6e
--- a/examples/inc/RadioEvent.h Mon May 18 09:57:44 2020 -0500 +++ b/examples/inc/RadioEvent.h Mon May 18 13:12:47 2020 -0500 @@ -82,6 +82,14 @@ } } } + +#if ACTIVE_EXAMPLE == FOTA_EXAMPLE + virtual void ServerTime(uint32_t seconds, uint8_t sub_seconds) { + mDotEvent::ServerTime(seconds, sub_seconds); + + Fota::getInstance()->setClockOffset(seconds); + } +#endif }; #endif