tidy up comments

This commit is contained in:
proddy
2026-04-27 11:08:52 +02:00
parent 1cff1abc33
commit 7c6259dddd
3 changed files with 3 additions and 9 deletions

View File

@@ -482,10 +482,8 @@ const Version = () => {
{ immediate: false } { immediate: false }
); );
// Fetch latest stable/dev versions via the device. The ESP32 calls // fetch latest stable/dev versions via the device. The C++ code makes a call to emsesp.org/versions.json itself
// emsesp.org/versions.json itself and includes its own `current` info plus // if the device has no internet, stable/dev are omitted and the internetLive flag is set to false
// upgradeable flags. If the device has no internet, `stable`/`dev` are
// absent and we surface that as "internet not live".
useRequest(() => callAction({ action: 'getVersions' })) useRequest(() => callAction({ action: 'getVersions' }))
.onSuccess((event) => { .onSuccess((event) => {
const versions = event.data as VersionsResponse; const versions = event.data as VersionsResponse;

View File

@@ -415,10 +415,6 @@ function upgradeImportantMessages(version: string) {
} }
// called by Action endpoint getVersions // 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). // Set MOCK_OFFLINE = true to simulate a device with no internet (omits stable/dev).
const MOCK_OFFLINE = false; const MOCK_OFFLINE = false;
function get_versions() { function get_versions() {

View File

@@ -1811,10 +1811,10 @@ void EMSESP::start() {
analogsensor_.start(factory_settings); // Analog external sensors analogsensor_.start(factory_settings); // Analog external sensors
// start web services // start web services
LOG_INFO("Starting Web Server");
webLogService.start(); // apply settings to weblog service webLogService.start(); // apply settings to weblog service
webModulesService.begin(); // setup the external library modules webModulesService.begin(); // setup the external library modules
webServer.begin(); // start the web server webServer.begin(); // start the web server
LOG_INFO("Starting Web Server");
} }
void EMSESP::start_serial_console() { void EMSESP::start_serial_console() {