Introduces new memory allocation functions, based on wled#4895 by @DedeHai * keep a minimum of 15KB RAM available to UI - improves stability * S3/S2/C3 automatically use "fast RTC Ram" for small data (reduces fragmentation) * auto-detects PSRAM (or no PSRAM) when firmware was built with -D BOARD_HAS_PSRAM * d_malloc() and d_calloc() prefer DRAM if possible (faster), but fall back to PSRAM when free RAM gets low.
This commit is contained in:
@@ -157,7 +157,7 @@ static uint16_t mode_oops(void) {
|
||||
strip._colors_t[0] = RED;
|
||||
strip._colors_t[1] = BLUE;
|
||||
strip._colors_t[2] = GREEN;
|
||||
errorFlag = ERR_NORAM_PX;
|
||||
//errorFlag = ERR_NORAM_PX;
|
||||
if (SEGLEN <= 1) return mode_static();
|
||||
const uint16_t width = SEGMENT.is2D() ? SEGMENT.virtualWidth() : SEGMENT.virtualLength();
|
||||
const uint16_t height = SEGMENT.virtualHeight();
|
||||
|
||||
Reference in New Issue
Block a user