From f6beeecec1a93a9b8b6e4f2e2932191fad57a43b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Tue, 7 Nov 2017 01:37:46 +0100 Subject: [PATCH] Make local variables static. --- right/src/usb_report_updater.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 4159b3a..41d4d19 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -74,9 +74,9 @@ void processMouseAction(key_action_t *action) wasPreviousMouseActionWheelAction = isWheelAction; } -uint8_t basicScancodeIndex = 0; -uint8_t mediaScancodeIndex = 0; -uint8_t systemScancodeIndex = 0; +static uint8_t basicScancodeIndex = 0; +static uint8_t mediaScancodeIndex = 0; +static uint8_t systemScancodeIndex = 0; void applyKeyAction(key_state_t *keyState, key_action_t *action) { @@ -116,10 +116,10 @@ void applyKeyAction(key_state_t *keyState, key_action_t *action) } } -uint8_t secondaryRoleState = SecondaryRoleState_Released; -uint8_t secondaryRoleSlotId; -uint8_t secondaryRoleKeyId; -secondary_role_t secondaryRole; +static uint8_t secondaryRoleState = SecondaryRoleState_Released; +static uint8_t secondaryRoleSlotId; +static uint8_t secondaryRoleKeyId; +static secondary_role_t secondaryRole; void UpdateActiveUsbReports(void) {