Merge pull request #648 from CapeLeidokos/ng_remove_handleKeyswitchEvent_hack

Removed a hacky statement that became useless
pull/659/head
Jesse Vincent 6 years ago committed by GitHub
commit dd5605f173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,11 +44,6 @@ Kaleidoscope_::setup(void) {
kaleidoscope::hid::initializeConsumerControl(); kaleidoscope::hid::initializeConsumerControl();
kaleidoscope::hid::initializeSystemControl(); 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. // Update the keymap cache, so we start with a non-empty state.
Layer.updateActiveLayers(); Layer.updateActiveLayers();
for (byte row = 0; row < ROWS; row++) { for (byte row = 0; row < ROWS; row++) {

@ -46,6 +46,7 @@ class LEDMode : public kaleidoscope::Plugin,
friend class LEDControl; friend class LEDControl;
friend class kaleidoscope::internal::LEDModeManager; friend class kaleidoscope::internal::LEDModeManager;
protected: protected:
// These methods should only be called by LEDControl. // These methods should only be called by LEDControl.
/** One-time setup, called at keyboard boot. /** One-time setup, called at keyboard boot.

Loading…
Cancel
Save