Fixed mem calculation.
This commit is contained in:
parent
caa9cc32d7
commit
8f1cee2e61
@ -493,7 +493,6 @@ class BusManager {
|
|||||||
return len*6;
|
return len*6;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (type >= 10 && type <= 15) return len*6; // double buffer for network
|
|
||||||
if (type > 31 && type < 48) return 5;
|
if (type > 31 && type < 48) return 5;
|
||||||
if (type == 44 || type == 45) return len*4; //RGBW
|
if (type == 44 || type == 45) return len*4; //RGBW
|
||||||
return len*3;
|
return len*3;
|
||||||
|
@ -105,7 +105,6 @@
|
|||||||
}
|
}
|
||||||
//returns mem usage
|
//returns mem usage
|
||||||
function getMem(t, len, p0) {
|
function getMem(t, len, p0) {
|
||||||
if (t >= 10 && t <= 12) return len*6; // double buffer for network UDP bus
|
|
||||||
if (t > 15 && t < 32) {
|
if (t > 15 && t < 32) {
|
||||||
if (maxM < 10000 && p0==3) { //8266 DMA uses 5x the mem
|
if (maxM < 10000 && p0==3) { //8266 DMA uses 5x the mem
|
||||||
if (t > 29) return len*20; //RGBW
|
if (t > 29) return len*20; //RGBW
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user