From 50c3fb417e912929d0168aad668275a2bcce2a16 Mon Sep 17 00:00:00 2001 From: Florian Fleissner Date: Thu, 23 May 2019 13:02:19 +0200 Subject: [PATCH] Removed a hacky statement that became useless After changing the linker command line in platform.txt in a way that linker error problems are fixed, this statement is no more needed. Signed-off-by: Florian Fleissner --- src/kaleidoscope/Kaleidoscope.cpp | 5 ----- src/kaleidoscope/plugin/LEDMode.h | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/kaleidoscope/Kaleidoscope.cpp b/src/kaleidoscope/Kaleidoscope.cpp index 3b4fc0a7..0a81682d 100644 --- a/src/kaleidoscope/Kaleidoscope.cpp +++ b/src/kaleidoscope/Kaleidoscope.cpp @@ -44,11 +44,6 @@ Kaleidoscope_::setup(void) { kaleidoscope::hid::initializeConsumerControl(); kaleidoscope::hid::initializeSystemControl(); - // A workaround, so that the compiler does not optimize handleKeyswitchEvent out... - // This is a no-op, but tricks the compiler into not being too helpful - // TODO(anyone): figure out how to hint the compiler in a more reasonable way - handleKeyswitchEvent(Key_NoKey, 255, 255, 0); - // Update the keymap cache, so we start with a non-empty state. Layer.updateActiveLayers(); for (byte row = 0; row < ROWS; row++) { diff --git a/src/kaleidoscope/plugin/LEDMode.h b/src/kaleidoscope/plugin/LEDMode.h index e734046b..2f63e690 100644 --- a/src/kaleidoscope/plugin/LEDMode.h +++ b/src/kaleidoscope/plugin/LEDMode.h @@ -46,6 +46,7 @@ class LEDMode : public kaleidoscope::Plugin, friend class LEDControl; friend class kaleidoscope::internal::LEDModeManager; protected: + // These methods should only be called by LEDControl. /** One-time setup, called at keyboard boot.