make ALL_JSON_TO_PSRAM the default

PSRAM optimizations: always enable ALL_JSON_TO_PSRAM and WLED_USE_PSRAM_JSON
This commit is contained in:
Frank
2024-04-28 22:56:06 +02:00
parent 56c76458fd
commit de66ec45b7
3 changed files with 10 additions and 8 deletions

View File

@@ -408,9 +408,9 @@ static String getContentType(AsyncWebServerRequest* request, String filename){
}
#if defined(BOARD_HAS_PSRAM) && defined(WLED_USE_PSRAM)
// caching presets in PSRAM may prevent occasional flashes seen when HomeAssitant polls WLED
// caching presets in PSRAM may prevent occasional flashes seen when HomeAssistant polls WLED
// original idea by @akaricchi (https://github.com/Akaricchi)
// returns a pointer to the PSRAM buffer updates size parameter
// returns a pointer to the PSRAM buffer, updates size parameter
static const uint8_t *getPresetCache(size_t &size) {
static unsigned long presetsCachedTime;
static uint8_t *presetsCached;