diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index e555863..7d99023 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -366,7 +366,7 @@ static void updateActiveUsbReports(void) if (action->type == KeyActionType_Keystroke && action->keystroke.secondaryRole) { // Press released secondary role key. - if (!keyState->previous && action->type == KeyActionType_Keystroke && action->keystroke.secondaryRole && secondaryRoleState == SecondaryRoleState_Released) { + if (!keyState->previous && secondaryRoleState == SecondaryRoleState_Released) { secondaryRoleState = SecondaryRoleState_Pressed; secondaryRoleSlotId = slotId; secondaryRoleKeyId = keyId;