From 83f0013b2f9ef317fe93fa129c2c51f5a480b7f0 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 26 Jun 2024 14:16:09 +0700 Subject: [PATCH] fix: adds a small delay before sending a layer change on Atmel boards --- keyboards/zsa/common/oryx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keyboards/zsa/common/oryx.c b/keyboards/zsa/common/oryx.c index fdac479e8e..bf695aeac8 100644 --- a/keyboards/zsa/common/oryx.c +++ b/keyboards/zsa/common/oryx.c @@ -275,6 +275,10 @@ bool pre_process_record_kb(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);