diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 7fdf9bd..5e5e7a8 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -191,11 +191,12 @@ static layer_id_t previousLayer = LayerId_Base; static uint8_t basicScancodeIndex = 0; static uint8_t mediaScancodeIndex = 0; static uint8_t systemScancodeIndex = 0; -key_state_t *doubleTapSwitchLayerKey; -uint32_t doubleTapSwitchLayerStartTime; void applyKeyAction(key_state_t *keyState, key_action_t *action) { + static key_state_t *doubleTapSwitchLayerKey; + static uint32_t doubleTapSwitchLayerStartTime; + if (keyState->suppressed) { return; }