mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
tidy up comments
This commit is contained in:
@@ -482,10 +482,8 @@ const Version = () => {
|
||||
{ immediate: false }
|
||||
);
|
||||
|
||||
// Fetch latest stable/dev versions via the device. The ESP32 calls
|
||||
// emsesp.org/versions.json itself and includes its own `current` info plus
|
||||
// upgradeable flags. If the device has no internet, `stable`/`dev` are
|
||||
// absent and we surface that as "internet not live".
|
||||
// fetch latest stable/dev versions via the device. The C++ code makes a call to emsesp.org/versions.json itself
|
||||
// if the device has no internet, stable/dev are omitted and the internetLive flag is set to false
|
||||
useRequest(() => callAction({ action: 'getVersions' }))
|
||||
.onSuccess((event) => {
|
||||
const versions = event.data as VersionsResponse;
|
||||
|
||||
@@ -415,10 +415,6 @@ function upgradeImportantMessages(version: string) {
|
||||
}
|
||||
|
||||
// called by Action endpoint getVersions
|
||||
// Mirrors the C++ WebStatusService::getVersions() payload:
|
||||
// { current: { version, type, date },
|
||||
// stable?: { version, date, upgradeable },
|
||||
// dev?: { version, date, upgradeable } }
|
||||
// Set MOCK_OFFLINE = true to simulate a device with no internet (omits stable/dev).
|
||||
const MOCK_OFFLINE = false;
|
||||
function get_versions() {
|
||||
|
||||
@@ -1811,10 +1811,10 @@ void EMSESP::start() {
|
||||
analogsensor_.start(factory_settings); // Analog external sensors
|
||||
|
||||
// start web services
|
||||
LOG_INFO("Starting Web Server");
|
||||
webLogService.start(); // apply settings to weblog service
|
||||
webModulesService.begin(); // setup the external library modules
|
||||
webServer.begin(); // start the web server
|
||||
LOG_INFO("Starting Web Server");
|
||||
}
|
||||
|
||||
void EMSESP::start_serial_console() {
|
||||
|
||||
Reference in New Issue
Block a user