From f2fb32e5d84222a2208d5491b482ebbd94cc7751 Mon Sep 17 00:00:00 2001 From: nliviu Date: Tue, 21 Jan 2020 11:31:22 +0200 Subject: [PATCH] Fix definition for Event.SYS + 3 --- fs/api_events.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/api_events.js b/fs/api_events.js index 914add0..179a62b 100644 --- a/fs/api_events.js +++ b/fs/api_events.js @@ -101,12 +101,9 @@ Event.LOG = Event.SYS + 1; // is irrelevant for this event. Event.REBOOT = Event.SYS + 2; -// ## **`Event.OTA_STATUS`** -// System event which is triggered when OTA status changes. -// -// In the callback, use `OTA.evdataOtaStatusMsg(evdata)` from `api_ota.js` to -// get the OTA status message. -Event.OTA_TIME_CHANGED = Event.SYS + 3; +// ## **`Event.TIME_CHANGED`** +// System event which is triggered when time is changed with `mgos_settimeofday()`. +Event.TIME_CHANGED = Event.SYS + 3; // ## **`Event.CLOUD_CONNECTED`** // Triggered when device is connected to the cloud (mqtt, dash)