fix: adds a small delay before sending a layer change on Atmel boards

This commit is contained in:
Florian
2024-06-26 14:16:09 +07:00
parent f633614efc
commit 8dfcde3029

View File

@@ -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);