From 6778581bcfb934068db5fb3f3fb2b6bbfc3f392d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 11 Aug 2017 14:00:51 -0700 Subject: [PATCH] add a more descriptive comment --- src/Kaleidoscope.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Kaleidoscope.cpp b/src/Kaleidoscope.cpp index 3a6bbdd0..356235d6 100644 --- a/src/Kaleidoscope.cpp +++ b/src/Kaleidoscope.cpp @@ -12,7 +12,9 @@ Kaleidoscope_::setup(void) { KeyboardHardware.setup(); Keyboard.begin(); - // A workaround, so that the compiler does not optimize this out... + // 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: figure out how to hint the compiler in a more reasonable way handleKeyswitchEvent(Key_NoKey, 255, 255, 0); // Update the key cache, so we start with a non-empty state.