diff --git a/src/AudioPlayer.cpp b/src/AudioPlayer.cpp index 095d115..cf2a86c 100644 --- a/src/AudioPlayer.cpp +++ b/src/AudioPlayer.cpp @@ -101,7 +101,7 @@ void AudioPlayer_Init(void) { xTaskCreatePinnedToCore( AudioPlayer_Task, /* Function to implement the task */ "mp3play", /* Name of the task */ - 11000, /* Stack size in words */ + 4000, /* Stack size in words */ NULL, /* Task input parameter */ 2 | portPRIVILEGE_BIT, /* Priority of the task */ NULL, /* Task handle. */ diff --git a/src/Web.cpp b/src/Web.cpp index 9579630..19b1c96 100644 --- a/src/Web.cpp +++ b/src/Web.cpp @@ -591,8 +591,8 @@ void explorerHandleFileStorageTask(void *parameter) { // Sends a list of the content of a directory as JSON file // requires a GET parameter path for the directory void explorerHandleListRequest(AsyncWebServerRequest *request) { - DynamicJsonDocument jsonBuffer(8192); - //StaticJsonDocument<16384> jsonBuffer; + //DynamicJsonDocument jsonBuffer(8192); + StaticJsonDocument<8192> jsonBuffer; String serializedJsonString; AsyncWebParameter *param; char filePath[MAX_FILEPATH_LENTGH];