mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-19 10:32:56 +00:00
elimination of sub-functions
because i dont think it will be used anywhere else
This commit is contained in:
parent
42ac6f90c2
commit
5e1224a266
1 changed files with 2 additions and 12 deletions
|
@ -69,16 +69,6 @@ Direction parseDirection(uint8_t direction)
|
|||
throw ::std::invalid_argument("Invalid direction value: " + direction);
|
||||
}
|
||||
|
||||
size_t getFreeHeap()
|
||||
{
|
||||
return ESP.getFreeHeap();
|
||||
}
|
||||
|
||||
size_t getTotalHeap()
|
||||
{
|
||||
return ESP.getHeapSize();
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
void onGetConfig(AsyncWebServerRequest *request)
|
||||
|
@ -206,8 +196,8 @@ void onGetStatus(AsyncWebServerRequest *request)
|
|||
JsonDocument doc;
|
||||
|
||||
doc["uptime"] = millis();
|
||||
doc["heapFree"] = getFreeHeap();
|
||||
doc["heapTotal"] = getTotalHeap();
|
||||
doc["heapFree"] = ESP.getFreeHeap();
|
||||
doc["heapTotal"] = ESP.getHeapSize();
|
||||
|
||||
String jsonString;
|
||||
serializeJson(doc, jsonString);
|
||||
|
|
Loading…
Add table
Reference in a new issue