From fc01b29823d18879c3adb493b77aa87ba524fcc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 7 Jun 2018 15:25:39 +0200 Subject: [PATCH] Lowercase isLayerDoubleTapToggled. --- right/src/usb_report_updater.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index e96767c..979398d 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -197,15 +197,15 @@ static void handleSwitchLayerAction(key_state_t *keyState, key_action_t *action) static key_state_t *doubleTapSwitchLayerKey; static uint32_t doubleTapSwitchLayerStartTime; static uint32_t doubleTapSwitchLayerTriggerTime; - static bool IsLayerDoubleTapToggled; + static bool isLayerDoubleTapToggled; if (doubleTapSwitchLayerKey && doubleTapSwitchLayerKey != keyState && !keyState->previous) { doubleTapSwitchLayerKey = NULL; } - if (!keyState->previous && IsLayerDoubleTapToggled && ToggledLayer == action->switchLayer.layer) { + if (!keyState->previous && isLayerDoubleTapToggled && ToggledLayer == action->switchLayer.layer) { ToggledLayer = LayerId_Base; - IsLayerDoubleTapToggled = false; + isLayerDoubleTapToggled = false; } if (action->type != KeyActionType_SwitchLayer) { @@ -221,7 +221,7 @@ static void handleSwitchLayerAction(key_state_t *keyState, key_action_t *action) if (!keyState->previous && previousLayer == LayerId_Base && action->switchLayer.mode == SwitchLayerMode_HoldAndDoubleTapToggle) { if (doubleTapSwitchLayerKey && Timer_GetElapsedTimeAndSetCurrent(&doubleTapSwitchLayerStartTime) < DoubleTapSwitchLayerTimeout) { ToggledLayer = action->switchLayer.layer; - IsLayerDoubleTapToggled = true; + isLayerDoubleTapToggled = true; doubleTapSwitchLayerTriggerTime = Timer_GetCurrentTime(); } else { doubleTapSwitchLayerKey = keyState;