mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 01:47:10 +06:00
Fixed TAP_HOLD_CAPS_DELAY doens't work with wireless mode
This commit is contained in:
parent
58118c1d2c
commit
568ab37cce
|
@ -341,10 +341,15 @@ void wireless_send_keyboard(report_keyboard_t *report) {
|
|||
if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
|
||||
if (wireless_transport.send_keyboard) {
|
||||
#ifndef DISABLE_REPORT_BUFFER
|
||||
bool empty = report_buffer_is_empty();
|
||||
|
||||
report_buffer_t report_buffer;
|
||||
report_buffer.type = REPORT_TYPE_KB;
|
||||
memcpy(&report_buffer.keyboard, report, sizeof(report_keyboard_t));
|
||||
report_buffer_enqueue(&report_buffer);
|
||||
|
||||
if (empty)
|
||||
report_buffer_task();
|
||||
#else
|
||||
wireless_transport.send_keyboard(&report->mods);
|
||||
#endif
|
||||
|
@ -362,10 +367,15 @@ void wireless_send_nkro(report_nkro_t *report) {
|
|||
if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
|
||||
if (wireless_transport.send_nkro) {
|
||||
#ifndef DISABLE_REPORT_BUFFER
|
||||
bool empty = report_buffer_is_empty();
|
||||
|
||||
report_buffer_t report_buffer;
|
||||
report_buffer.type = REPORT_TYPE_NKRO;
|
||||
memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
|
||||
report_buffer_enqueue(&report_buffer);
|
||||
|
||||
if (empty)
|
||||
report_buffer_task();
|
||||
#else
|
||||
wireless_transport.send_nkro(&report->mods);
|
||||
#endif
|
||||
|
|
|
@ -351,10 +351,15 @@ void wireless_send_keyboard(report_keyboard_t *report) {
|
|||
if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
|
||||
if (wireless_transport.send_keyboard) {
|
||||
#ifndef DISABLE_REPORT_BUFFER
|
||||
bool empty = report_buffer_is_empty();
|
||||
|
||||
report_buffer_t report_buffer;
|
||||
report_buffer.type = REPORT_TYPE_KB;
|
||||
memcpy(&report_buffer.keyboard, report, sizeof(report_keyboard_t));
|
||||
report_buffer_enqueue(&report_buffer);
|
||||
|
||||
if (empty)
|
||||
report_buffer_task();
|
||||
#else
|
||||
wireless_transport.send_keyboard(&report->mods);
|
||||
#endif
|
||||
|
@ -372,10 +377,15 @@ void wireless_send_nkro(report_nkro_t *report) {
|
|||
if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
|
||||
if (wireless_transport.send_nkro) {
|
||||
#ifndef DISABLE_REPORT_BUFFER
|
||||
bool empty = report_buffer_is_empty();
|
||||
|
||||
report_buffer_t report_buffer;
|
||||
report_buffer.type = REPORT_TYPE_NKRO;
|
||||
memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
|
||||
report_buffer_enqueue(&report_buffer);
|
||||
|
||||
if (empty)
|
||||
report_buffer_task();
|
||||
#else
|
||||
wireless_transport.send_nkro(&report->mods);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user