mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 00:16:41 +06:00
Fixed macro doesn't work correctly with NKRO
This commit is contained in:
parent
8e390f92a2
commit
0c05eef6cd
|
@ -362,13 +362,10 @@ 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
|
||||
|
||||
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);
|
||||
|
||||
wireless_transport.send_nkro(&report->mods);
|
||||
#else
|
||||
wireless_transport.send_nkro(&report->mods);
|
||||
#endif
|
||||
|
|
|
@ -374,13 +374,10 @@ 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
|
||||
|
||||
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);
|
||||
|
||||
wireless_transport.send_nkro(&report->mods);
|
||||
#else
|
||||
wireless_transport.send_nkro(&report->mods);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user