Skip to content

Commit

Permalink
fix: adds a small delay before sending a layer change on Atmel boards
Browse files Browse the repository at this point in the history
  • Loading branch information
fdidron committed Jun 26, 2024
1 parent f633614 commit 8dfcde3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quantum/oryx.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ bool process_record_oryx(uint16_t keycode, keyrecord_t *record) {

void layer_state_set_oryx(layer_state_t state) {
if (rawhid_state.paired) {
#if defined(PROTOCOL_LUFA)
// Required for Atmel Boards
wait_ms(10);
#endif
uint8_t event[RAW_EPSIZE];
event[0] = ORYX_EVT_LAYER;
event[1] = get_highest_layer(state);
Expand Down

0 comments on commit 8dfcde3

Please sign in to comment.