From 6190f55c578e93b177ba6e8f78c023b4114ca79c Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 6 Jun 2018 11:57:36 +0200 Subject: [PATCH] Dim the numpad color down from 255 to 160. Having it at the brightest uses too much power, and may result in power use surges when switching between LED modes and NumPad, which in turn can force the operating system to disable the whole device. To avoid this, lower the brightness to 160, a carefull tuned value, also used by the `solidRed` mode in the factory firmware. Fixes #9. Signed-off-by: Gergely Nagy --- src/Kaleidoscope-NumPad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kaleidoscope-NumPad.cpp b/src/Kaleidoscope-NumPad.cpp index 0057d08c..70a2299a 100644 --- a/src/Kaleidoscope-NumPad.cpp +++ b/src/Kaleidoscope-NumPad.cpp @@ -7,7 +7,7 @@ byte NumPad_::row = 255, NumPad_::col = 255; uint8_t NumPad_::numPadLayer; bool NumPad_::cleanupDone = true; bool NumPad_::originalNumLockState = false; -cRGB numpad_color = CRGB(255, 0, 0); +cRGB numpad_color = CRGB(160, 0, 0); kaleidoscope::EventHandlerResult NumPad_::onSetup(void) { originalNumLockState = !!(kaleidoscope::hid::getKeyboardLEDs() & LED_NUM_LOCK);