Fixed ESP32 by using builtin ESP SD library and forcing min calls to cast to float when used
This commit is contained in:
parent
42949bd10b
commit
c5f0dc66cb
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user