make all compilers happy

fixing CI build error
This commit is contained in:
Frank
2024-10-07 13:35:31 +02:00
parent 7740c7dc62
commit 5b1f3e1eba

View File

@@ -3208,7 +3208,7 @@ static const char _data_FX_MODE_SOLID_GLITTER[] PROGMEM = "Solid Glitter@,!;Bg,,
//each needs 19 bytes //each needs 19 bytes
//Spark type is used for popcorn, 1D fireworks, and drip //Spark type is used for popcorn, 1D fireworks
typedef struct Spark { typedef struct Spark {
float pos, posX; float pos, posX;
float vel, velX; float vel, velX;
@@ -3823,7 +3823,7 @@ uint16_t mode_drip(void)
}; };
// WLEDMM calculate time passed // WLEDMM calculate time passed
uint32_t millisPassed = min(max(1UL, strip.now - SEGENV.step), 180UL); // constrain between 1 and 180 uint32_t millisPassed = min(max(1U, unsigned(strip.now - SEGENV.step)), 180U); // constrain between 1 and 180
SEGENV.step = strip.now; SEGENV.step = strip.now;
float deltaTime = float(millisPassed) / 20.0f; // base speed 50 FPS float deltaTime = float(millisPassed) / 20.0f; // base speed 50 FPS
for (int stripNr=0; stripNr<strips; stripNr++) for (int stripNr=0; stripNr<strips; stripNr++)