fix display partition name, remove double quotes in shuntingyard

This commit is contained in:
MichaelDvP
2025-09-25 17:11:21 +02:00
parent b2a8738672
commit 61c3b47269
5 changed files with 23 additions and 9 deletions

View File

@@ -351,7 +351,7 @@ bool WebSchedulerService::command(const char * name, const std::string & command
}
std::string value = doc["value"] | data.c_str(); // extract value if its in the command, or take the data
std::string method = doc["method"] | "GET"; // default GET
commands(value, false);
// if there is data, force a POST
int httpResult = 0;
if (value.length() || method == "post") { // we have all lowercase

View File

@@ -115,7 +115,7 @@ void WebStatusService::systemStatus(AsyncWebServerRequest * request) {
root["max_alloc_heap"] = EMSESP::system_.getMaxAllocMem();
root["arduino_version"] = ARDUINO_VERSION;
root["sdk_version"] = ESP.getSdkVersion();
root["partition"] = esp_ota_get_running_partition()->label; // active partition
root["partition"] = (const char *)esp_ota_get_running_partition()->label; // active partition
root["flash_chip_size"] = ESP.getFlashChipSize() / 1024;
root["flash_chip_speed"] = ESP.getFlashChipSpeed();
root["app_used"] = EMSESP::system_.appUsed();