Skip to content

Commit

Permalink
h/fix: quick disconection causes next pairing to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
fdidron committed Dec 21, 2023
1 parent 6b764d5 commit 20d57f0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions quantum/oryx.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,10 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
}

case ORYX_CMD_PAIRING_INIT:
if (rawhid_state.paired == true)
pairing_failed_event();
else
pairing_success_event();
break;
pairing_success_event();

case ORYX_CMD_PAIRING_VALIDATE:
if (rawhid_state.paired == true)
pairing_failed_event();
else
pairing_success_event();
break;
pairing_success_event();

case ORYX_SET_LAYER:
if (rawhid_state.paired == true) {
Expand Down

0 comments on commit 20d57f0

Please sign in to comment.