mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
output also the flash size
This commit is contained in:
@@ -1517,7 +1517,7 @@ bool System::command_info(const char * value, const int8_t id, JsonObject output
|
||||
|
||||
// System
|
||||
node = output["system"].to<JsonObject>();
|
||||
// prevent false negative in Unity tests every time the version changes
|
||||
// prevent false-negatives in Unity tests every time the version changes
|
||||
#if defined(EMSESP_UNITY)
|
||||
node["version"] = "dev";
|
||||
#else
|
||||
@@ -1536,6 +1536,7 @@ bool System::command_info(const char * value, const int8_t id, JsonObject output
|
||||
node["usedApp"] = EMSESP::system_.appUsed(); // kilobytes
|
||||
node["freeApp"] = EMSESP::system_.appFree(); // kilobytes
|
||||
node["partition"] = esp_ota_get_running_partition()->label; // active partition
|
||||
node["flash_chip_size"] = ESP.getFlashChipSize() / 1024; // kilobytes
|
||||
#endif
|
||||
node["resetReason"] = EMSESP::system_.reset_reason(0) + " / " + EMSESP::system_.reset_reason(1);
|
||||
#ifndef EMSESP_STANDALONE
|
||||
|
||||
Reference in New Issue
Block a user