mirror of
https://github.com/ravinrabbid/DonCon2040.git
synced 2024-11-20 03:37:07 +01:00
Fix: LED Brightness not configurable
This commit is contained in:
parent
65d0a7a551
commit
d81dd41d79
@ -18,7 +18,7 @@ void StatusLed::setInputState(const Utils::InputState input_state) { m_input_sta
|
||||
void StatusLed::setBrightness(const uint8_t brightness) { m_config.brightness = brightness; }
|
||||
|
||||
void StatusLed::update() {
|
||||
static float brightness_factor = m_config.brightness / static_cast<float>(UINT8_MAX);
|
||||
float brightness_factor = m_config.brightness / static_cast<float>(UINT8_MAX);
|
||||
|
||||
uint16_t mixed_red = 0;
|
||||
uint16_t mixed_green = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user