Fixed macro doesn't work correctly with NKRO

This commit is contained in:
lokher 2024-06-22 14:06:38 +08:00
parent 8e390f92a2
commit 0c05eef6cd
2 changed files with 0 additions and 6 deletions

View File

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

View File

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