From 991185d1b347b6d58e9d145920967ca91227d901 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 20 Mar 2024 08:58:42 +0700 Subject: [PATCH] feat: oryx protocol version hid command --- quantum/oryx.c | 10 ++++++++++ quantum/oryx.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/quantum/oryx.c b/quantum/oryx.c index 4dc37b4e06a6..da8c685db44b 100644 --- a/quantum/oryx.c +++ b/quantum/oryx.c @@ -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(); diff --git a/quantum/oryx.h b/quantum/oryx.h index f8164ca6eb40..85d124fafa17 100644 --- a/quantum/oryx.h +++ b/quantum/oryx.h @@ -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 {