Fixed ESP32 by using builtin ESP SD library and forcing min calls to cast to float when used

This commit is contained in:
Bradley Bickford 2025-09-14 22:33:50 -04:00
parent 42949bd10b
commit c5f0dc66cb
2 changed files with 4 additions and 4 deletions

View File

@ -23,9 +23,9 @@ class CycloneHelper {
for(uint8_t i = 0; i < numberOfTails; i++) {
tailColors[i] = CRGB(
min(round(redScaler * (i + 1)), color.red),
min(round(greenScaler * (i + 1)), color.green),
min(round(blueScaler * (i + 1)), color.blue)
min(round(redScaler * (i + 1)), (float)color.red),
min(round(greenScaler * (i + 1)), (float)color.green),
min(round(blueScaler * (i + 1)), (float)color.blue)
);
}

View File

@ -13,6 +13,7 @@ default_envs =
uno
teensy36
mega2560
esp32
[common]
@ -55,4 +56,3 @@ lib_deps =
fastled/FastLED@^3.7.0
pfeerick/elapsedMillis@^1.0.6
adafruit/Adafruit GFX Library@^1.11.9
arduino-libraries/SD@^1.3.0