mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix standalone building
This commit is contained in:
@@ -994,9 +994,9 @@ void System::show_system(uuid::console::Shell & shell) {
|
|||||||
shell.println();
|
shell.println();
|
||||||
shell.println("System:");
|
shell.println("System:");
|
||||||
shell.printfln(" Version: %s", EMSESP_APP_VERSION);
|
shell.printfln(" Version: %s", EMSESP_APP_VERSION);
|
||||||
|
#ifndef EMSESP_STANDALONE
|
||||||
shell.printfln(" Platform: %s (%s)", EMSESP_PLATFORM, ESP.getChipModel());
|
shell.printfln(" Platform: %s (%s)", EMSESP_PLATFORM, ESP.getChipModel());
|
||||||
shell.printfln(" Model: %s", getBBQKeesGatewayDetails().c_str());
|
shell.printfln(" Model: %s", getBBQKeesGatewayDetails().c_str());
|
||||||
#ifndef EMSESP_STANDALONE
|
|
||||||
shell.printfln(" Partition Boot/Running: %s/%s", esp_ota_get_boot_partition()->label, esp_ota_get_running_partition()->label);
|
shell.printfln(" Partition Boot/Running: %s/%s", esp_ota_get_boot_partition()->label, esp_ota_get_running_partition()->label);
|
||||||
#endif
|
#endif
|
||||||
shell.printfln(" Language: %s", locale().c_str());
|
shell.printfln(" Language: %s", locale().c_str());
|
||||||
@@ -1437,12 +1437,14 @@ bool System::command_info(const char * value, const int8_t id, JsonObject output
|
|||||||
+ esp_ota_get_running_partition()->label; // will sycle app0/app0 - app1/app1 after OTA. boot/factory is on first install.
|
+ esp_ota_get_running_partition()->label; // will sycle app0/app0 - app1/app1 after OTA. boot/factory is on first install.
|
||||||
#endif
|
#endif
|
||||||
node["resetReason"] = EMSESP::system_.reset_reason(0) + " / " + EMSESP::system_.reset_reason(1);
|
node["resetReason"] = EMSESP::system_.reset_reason(0) + " / " + EMSESP::system_.reset_reason(1);
|
||||||
node["psram"] = (EMSESP::system_.PSram() > 0); // boolean
|
#ifndef EMSESP_STANDALONE
|
||||||
|
node["psram"] = (EMSESP::system_.PSram() > 0); // boolean
|
||||||
if (EMSESP::system_.PSram()) {
|
if (EMSESP::system_.PSram()) {
|
||||||
node["psramSize"] = EMSESP::system_.PSram();
|
node["psramSize"] = EMSESP::system_.PSram();
|
||||||
node["freePsram"] = ESP.getFreePsram() / 1024;
|
node["freePsram"] = ESP.getFreePsram() / 1024;
|
||||||
}
|
}
|
||||||
node["model"] = EMSESP::system_.getBBQKeesGatewayDetails();
|
node["model"] = EMSESP::system_.getBBQKeesGatewayDetails();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Network Status
|
// Network Status
|
||||||
node = output["network"].to<JsonObject>();
|
node = output["network"].to<JsonObject>();
|
||||||
|
|||||||
Reference in New Issue
Block a user