From 947851150d6ae9bcb6a50cc40245a273d42185c8 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 7 Jan 2020 17:29:28 +0100 Subject: [PATCH] device/Imago: Fix a typo, and a thinko Signed-off-by: Gergely Nagy --- src/kaleidoscope/device/keyboardio/Imago.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kaleidoscope/device/keyboardio/Imago.cpp b/src/kaleidoscope/device/keyboardio/Imago.cpp index e5e965bd..35d1c019 100644 --- a/src/kaleidoscope/device/keyboardio/Imago.cpp +++ b/src/kaleidoscope/device/keyboardio/Imago.cpp @@ -57,6 +57,7 @@ ATMEGA_KEYSCANNER_BOILERPLATE bool ImagoLEDDriver::isLEDChanged = true; cRGB ImagoLEDDriver::led_data[]; +uint8_t ImagoLEDDriver::brightness_adjustment_; void ImagoLEDDriver::setup() { setAllPwmTo(0xFF); @@ -100,7 +101,7 @@ cRGB ImagoLEDDriver::getCrgbAt(uint8_t i) { uint8_t ImagoLEDDriver::adjustBrightness(uint8_t value) { if (value > brightness_adjustment_) - value -= brightness_adjustment; + value -= brightness_adjustment_; else value = 0;