Fix: LED Brightness not configurable

This commit is contained in:
Frederik Walk 2023-07-09 18:20:00 +02:00
parent 65d0a7a551
commit d81dd41d79

View File

@ -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;