device/Imago: Fix a typo, and a thinko

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/791/head
Gergely Nagy 5 years ago
parent cc605a10b0
commit 947851150d
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

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

Loading…
Cancel
Save