diff options
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/oryx.c | 7 | ||||
-rw-r--r-- | quantum/oryx.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/quantum/oryx.c b/quantum/oryx.c index c828931e72..080846b38f 100644 --- a/quantum/oryx.c +++ b/quantum/oryx.c @@ -42,6 +42,13 @@ void raw_hid_receive(uint8_t *data, uint8_t length) { } pairing_validate_eeprom_handler(); break; + + case ORYX_SET_LAYER: + if(rawhid_state.paired == true) { + layer_clear(); + layer_on(param[0]); + } + break; } } diff --git a/quantum/oryx.h b/quantum/oryx.h index e7659fff27..1deae0765d 100644 --- a/quantum/oryx.h +++ b/quantum/oryx.h @@ -22,7 +22,7 @@ enum Oryx_Command_Code { ORYX_CMD_PAIRING_INIT, ORYX_CMD_PAIRING_VALIDATE, ORYX_CMD_DISCONNECT, - ORYX_GET_LAYER, + ORYX_SET_LAYER }; enum Oryx_Event_Code { |