Skip to content

Commit

Permalink
chore: refactor set layer over hid code
Browse files Browse the repository at this point in the history
  • Loading branch information
fdidron committed Mar 20, 2024
1 parent 991185d commit 7547154
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions quantum/oryx.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ void pairing_success_event(void) {
raw_hid_send(event, sizeof(event));
}

void toggle_smart_layer(void) {
uint8_t event[RAW_EPSIZE];
event[0] = ORYX_EVT_TOGGLE_SMART_LAYER;
event[1] = ORYX_STOP_BIT;
raw_hid_send(event, sizeof(event));
}

void raw_hid_receive(uint8_t *data, uint8_t length) {
uint8_t command = data[0];
uint8_t *param = &data[1];
Expand Down
1 change: 1 addition & 0 deletions quantum/oryx.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ extern rawhid_state_t rawhid_state;
void oryx_error(uint8_t code);
void pairing_failed_event(void);
void pairing_succesful_event(void);
void toggle_smart_layer(void);

void oryx_layer_event(void);
bool process_record_oryx(uint16_t keycode, keyrecord_t* record);
Expand Down

0 comments on commit 7547154

Please sign in to comment.