mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
show partition in `show system'
This commit is contained in:
@@ -1614,7 +1614,7 @@ void EMSESP::start() {
|
|||||||
device_library_ = {
|
device_library_ = {
|
||||||
#include "device_library.h"
|
#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
|
system_.reload_settings(); // ... and store some of the settings locally
|
||||||
|
|
||||||
|
|||||||
@@ -994,6 +994,9 @@ void System::show_system(uuid::console::Shell & shell) {
|
|||||||
shell.printfln(" Version: %s", EMSESP_APP_VERSION);
|
shell.printfln(" Version: %s", EMSESP_APP_VERSION);
|
||||||
shell.printfln(" Platform: %s", EMSESP_PLATFORM);
|
shell.printfln(" Platform: %s", EMSESP_PLATFORM);
|
||||||
shell.printfln(" NVS device information: %s", getBBQKeesGatewayDetails().c_str());
|
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(" Language: %s", locale().c_str());
|
||||||
shell.printfln(" Board profile: %s", board_profile().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());
|
shell.printfln(" Uptime: %s", uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3).c_str());
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ void WebStatusService::systemStatus(AsyncWebServerRequest * request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// /rest/hardwareStatus
|
// /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) {
|
void WebStatusService::hardwareStatus(AsyncWebServerRequest * request) {
|
||||||
EMSESP::system_.refreshHeapMem(); // refresh free heap and max alloc heap
|
EMSESP::system_.refreshHeapMem(); // refresh free heap and max alloc heap
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user