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 bedb326ba0
commit 83f0013b2f

View File

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