Skip to content

Commit

Permalink
feat: oryx protocol version hid command
Browse files Browse the repository at this point in the history
  • Loading branch information
fdidron committed Mar 20, 2024
1 parent 1cd6926 commit 991185d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions quantum/oryx.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
break;
}

case ORYX_GET_PROTOCOL_VERSION: {
uint8_t event[RAW_EPSIZE];
event[0] = ORYX_EVT_GET_PROTOCOL_VERSION;
event[1] = ORYX_PROTOCOL_VERSION;
event[2] = ORYX_STOP_BIT;

raw_hid_send(event, RAW_EPSIZE);
break;
}

case ORYX_CMD_PAIRING_INIT:
pairing_success_event();

Expand Down
2 changes: 1 addition & 1 deletion quantum/oryx.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Once the host has paired, it can freely use the commands define in the Oryx_Comm
# define RAW_EPSIZE 32
#endif

#define ORYX_PROTOCOL_VERSION = 0x03
#define ORYX_PROTOCOL_VERSION 0x03
#define ORYX_STOP_BIT -2

enum Oryx_Command_Code {
Expand Down

0 comments on commit 991185d

Please sign in to comment.