Memory check on bus creation

This commit is contained in:
cschwinne
2021-02-27 00:57:12 +01:00
parent 746a8badac
commit befeb55349
6 changed files with 39 additions and 10 deletions

View File

@@ -188,13 +188,19 @@
// maximum number of LEDs - more than 1500 LEDs (or 500 DMA "LEDPIN 3" driven ones) will cause a low memory condition on ESP8266
#ifndef MAX_LEDS
#ifdef ESP8266
#define MAX_LEDS 1536
#define MAX_LEDS 2048
#else
#define MAX_LEDS 8192
#endif
#endif
#define MAX_LEDS_DMA 500
#ifndef MAX_LED_MEMORY
#ifdef ESP8266
#define MAX_LED_MEMORY 5000
#else
#define MAX_LED_MEMORY 64000
#endif
#endif
// string temp buffer (now stored in stack locally)
#define OMAX 2048