From 0c94cbb256bed6b9cef6a83a91c73acc7d4b8f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sun, 11 Feb 2018 03:29:15 +0100 Subject: [PATCH] Make doubleTapSwitchLayerKey and doubleTapSwitchLayerStartTime static. --- right/src/usb_report_updater.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }