mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-17 01:20:55 +02:00
Fix return cast (#554)
This commit is contained in:
@@ -36,7 +36,7 @@ public:
|
||||
}
|
||||
static uint16_t Correct(uint16_t value)
|
||||
{
|
||||
return static_cast<uint8_t>(65535.0f * NeoEase::Gamma(value / 65535.0f) + 0.5f);
|
||||
return static_cast<uint16_t>(65535.0f * NeoEase::Gamma(value / 65535.0f) + 0.5f);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user