fix sonar compile

This commit is contained in:
proddy
2024-08-16 16:14:07 +02:00
parent 1d287b6e20
commit bc8a840695
4 changed files with 8 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ void WebStatusService::systemStatus(AsyncWebServerRequest * request) {
#endif
}
#ifndef EMSESP_STANDALONE
const esp_partition_t * partition = esp_partition_find_first(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_APP_FACTORY, nullptr);
root["has_loader"] = partition != NULL && partition != esp_ota_get_running_partition();
partition = esp_ota_get_next_update_partition(nullptr);
@@ -91,6 +92,7 @@ void WebStatusService::systemStatus(AsyncWebServerRequest * request) {
} else {
root["has_partition"] = false;
}
#endif
response->setLength();
request->send(response);