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

@@ -279,11 +279,7 @@ void getSettingsJS(byte subPage, char* dest)
#endif
oappend(SET_F("d.Sf.LC.max=")); //TODO Formula for max LEDs on ESP8266 depending on types. 500 DMA or 1500 UART (about 4kB mem usage)
#if defined(ESP8266) && LEDPIN == 3
oappendi(MAX_LEDS_DMA);
#else
oappendi(MAX_LEDS);
#endif
oappend(";");
sappend('v',SET_F("LC"),ledCount);