publish

Dependencies:   ISL29011

Files at this revision

API Documentation at this revision

Comitter:
Jason Reiss
Date:
Mon May 18 13:12:47 2020 -0500
Parent:
41:3cb0ed329c6e
Commit message:
Add ServerTime event handler to RadioEvent

Changed in this revision

examples/inc/RadioEvent.h Show annotated file Show diff for this revision Revisions of this file
diff -r 3cb0ed329c6e -r 67feacfab49c examples/inc/RadioEvent.h
--- 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