Browse Source

Reduced Audio's stack + moved json to static RAM

master
Torsten Stauder 4 years ago
parent
commit
bf2df179c0
  1. 2
      src/AudioPlayer.cpp
  2. 4
      src/Web.cpp

2
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. */

4
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];

Loading…
Cancel
Save