diff --git a/html/scan.js b/html/scan.js index 7868c0a..51e589e 100644 --- a/html/scan.js +++ b/html/scan.js @@ -13,6 +13,7 @@ function get_mode() { var data = JSON.parse(this.responseText); if (data.mode==="STA") { _('stamode').style.display = 'block'; + _('rtctab').style.display = 'block'; _('ssid').textContent = data.ssid; } else { _('apmode').style.display = 'block'; @@ -347,6 +348,9 @@ _('forget').addEventListener('click', callback("Forget Home Network", "An error if (_('modelmatch') != undefined) { _('modelmatch').addEventListener('submit', callback("Set Model Match", "An error occurred updating the model match number", "/model", null)); } +_('setrtc').addEventListener('submit', callback("Set RTC Time", "An error occured setting the RTC time", "/setrtc", function() { + return new FormData(_('setrtc')); +})); //========================================================= diff --git a/html/vrx_index.html b/html/vrx_index.html index 74b1b52..2e35d51 100644 --- a/html/vrx_index.html +++ b/html/vrx_index.html @@ -27,6 +27,7 @@

Welcome to your ExpressLRS
update page
@@ -81,6 +82,29 @@

Home Network:

Disconnect
+ +
+
+

RTC Update via NTP

+ Here you can update your goggle RTC clock time using any available NTP server. + Make sure that the home network you're connected to has access to the Internet in order to connect to the NTP server. +
+
+ +
+
+ +
+
+ +
+ +
+
+