From d81dd41d79e9bb07544fb72895c09c36a5c92f2c Mon Sep 17 00:00:00 2001 From: Frederik Walk Date: Sun, 9 Jul 2023 18:20:00 +0200 Subject: [PATCH] Fix: LED Brightness not configurable --- src/peripherals/StatusLed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peripherals/StatusLed.cpp b/src/peripherals/StatusLed.cpp index 0f6b499..c83c657 100644 --- a/src/peripherals/StatusLed.cpp +++ b/src/peripherals/StatusLed.cpp @@ -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(UINT8_MAX); + float brightness_factor = m_config.brightness / static_cast(UINT8_MAX); uint16_t mixed_red = 0; uint16_t mixed_green = 0;