#1792 added in waits from tmk for locking switches

fixes #1792
This commit is contained in:
Joe Martin 2017-10-02 14:06:52 +02:00 committed by Jack Humbert
parent 01ac8a6051
commit b91ffba4be

View file

@ -619,6 +619,7 @@ void register_code(uint8_t code)
#endif #endif
add_key(KC_CAPSLOCK); add_key(KC_CAPSLOCK);
send_keyboard_report(); send_keyboard_report();
wait_ms(100);
del_key(KC_CAPSLOCK); del_key(KC_CAPSLOCK);
send_keyboard_report(); send_keyboard_report();
} }
@ -629,6 +630,7 @@ void register_code(uint8_t code)
#endif #endif
add_key(KC_NUMLOCK); add_key(KC_NUMLOCK);
send_keyboard_report(); send_keyboard_report();
wait_ms(100);
del_key(KC_NUMLOCK); del_key(KC_NUMLOCK);
send_keyboard_report(); send_keyboard_report();
} }
@ -639,6 +641,7 @@ void register_code(uint8_t code)
#endif #endif
add_key(KC_SCROLLLOCK); add_key(KC_SCROLLLOCK);
send_keyboard_report(); send_keyboard_report();
wait_ms(100);
del_key(KC_SCROLLLOCK); del_key(KC_SCROLLLOCK);
send_keyboard_report(); send_keyboard_report();
} }