esp8266_4MB_min - 160Mhz (instead of 80) ;-)

+ small things
This commit is contained in:
Ewoud
2023-01-17 17:54:14 +01:00
parent 8aebb94332
commit 6cd07c2216
3 changed files with 4 additions and 2 deletions

View File

@@ -4870,7 +4870,7 @@ uint16_t mode_2Dgameoflife(void) { // Written by Ewoud Wijma, inspired by https:
for (int y = 0; y < rows; y++) for (int x = 0; x < cols; x++) prevLeds[XY(x,y)] = CRGB::Black;
memset(crcBuffer, 0, sizeof(uint16_t)*crcBufferLen);
} else if (strip.now - SEGENV.step < FRAMETIME_FIXED * map(SEGMENT.speed,0,255,64,4)) {
} else if (strip.now - SEGENV.step < FRAMETIME_FIXED * (uint32_t)map(SEGMENT.speed,0,255,64,4)) { //WLEDMM (uint32_t) surpresses warning
// update only when appropriate time passes (in 42 FPS slots)
return FRAMETIME;
}