From 5d46660bef2d8a0f885ee703d8f96e61258dca6a Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 14 Feb 2017 07:37:06 +0100 Subject: [PATCH] Workaround for the compiler optimizing things out... Signed-off-by: Gergely Nagy --- src/Kaleidoscope.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Kaleidoscope.cpp b/src/Kaleidoscope.cpp index d7bbb0d7..94c687bd 100644 --- a/src/Kaleidoscope.cpp +++ b/src/Kaleidoscope.cpp @@ -14,6 +14,9 @@ Kaleidoscope_::setup(const byte keymap_count) { Keyboard.begin(); KeyboardHardware.setup(); + // A workaround, so that the compiler does not optimize this out... + handle_key_event (Key_NoKey, 255, 255, 0); + Layer.defaultLayer (KeyboardHardware.load_primary_layer (keymap_count)); }