fixing a few implicit promotions to double

any expression with at least on "double" is evaluated as double, which is slow.
This commit is contained in:
Frank
2023-09-09 20:48:17 +02:00
parent c276515f5a
commit 0fcbefb7a5
5 changed files with 9 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ bool parseLx(int lxValue, byte rgbw[4])
float tmpBri = floor((lxValue - 200000000) / 10000); ;
uint16_t ct = (lxValue - 200000000) - (((uint8_t)tmpBri) * 10000);
tmpBri *= 2.55;
tmpBri *= 2.55f;
tmpBri = constrain(tmpBri, 0, 255);
colorKtoRGB(ct, rgbw);