forked from Makuna/NeoPixelBus
1 parent
2480634ca7
commit
5e492ea925
12 files changed
+41
-41
No files matched your search
@@ -88,7 +88,7 @@ public:
|
||||
// Only update if there is a change
|
||||
if (brightness != _brightness)
|
||||
{
|
||||
uint16_t scale = (((uint16_t)brightness + 1) << 8) / ((uint16_t)_brightness + 1);
|
||||
uint16_t scale = ((static_cast<uint16_t>(brightness) + 1) << 8) / (static_cast<uint16_t>(_brightness) + 1);
|
||||
|
||||
// scale existing pixels
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user