show partition in `show system'

This commit is contained in:
proddy
2024-09-06 16:32:18 +02:00
parent d7a4f4af00
commit 8c29ccc153
3 changed files with 5 additions and 2 deletions

View File

@@ -1614,7 +1614,7 @@ void EMSESP::start() {
device_library_ = {
#include "device_library.h"
};
LOG_INFO("Loaded EMS device library (%d)", device_library_.size());
LOG_INFO("Loaded EMS device library (%d entries)", device_library_.size());
system_.reload_settings(); // ... and store some of the settings locally

View File

@@ -994,6 +994,9 @@ void System::show_system(uuid::console::Shell & shell) {
shell.printfln(" Version: %s", EMSESP_APP_VERSION);
shell.printfln(" Platform: %s", EMSESP_PLATFORM);
shell.printfln(" NVS device information: %s", getBBQKeesGatewayDetails().c_str());
#ifndef EMSESP_STANDALONE
shell.printfln(" Boot partition: %s", esp_ota_get_boot_partition()->label);
#endif
shell.printfln(" Language: %s", locale().c_str());
shell.printfln(" Board profile: %s", board_profile().c_str());
shell.printfln(" Uptime: %s", uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3).c_str());

View File

@@ -79,7 +79,7 @@ void WebStatusService::systemStatus(AsyncWebServerRequest * request) {
}
// /rest/hardwareStatus
// This is also used for polling
// This is also used for polling during the RestartMonitor to see if EMS-ESP is alive
void WebStatusService::hardwareStatus(AsyncWebServerRequest * request) {
EMSESP::system_.refreshHeapMem(); // refresh free heap and max alloc heap