mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-09 15:12:33 +00:00
fix: adds a small delay before sending a layer change on Atmel boards
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user