Fixed macro doesn't work correctly with NKRO
This commit is contained in:
@@ -362,13 +362,10 @@ void wireless_send_nkro(report_nkro_t *report) {
|
|||||||
if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
|
if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
|
||||||
if (wireless_transport.send_nkro) {
|
if (wireless_transport.send_nkro) {
|
||||||
#ifndef DISABLE_REPORT_BUFFER
|
#ifndef DISABLE_REPORT_BUFFER
|
||||||
|
|
||||||
report_buffer_t report_buffer;
|
report_buffer_t report_buffer;
|
||||||
report_buffer.type = REPORT_TYPE_NKRO;
|
report_buffer.type = REPORT_TYPE_NKRO;
|
||||||
memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
|
memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
|
||||||
report_buffer_enqueue(&report_buffer);
|
report_buffer_enqueue(&report_buffer);
|
||||||
|
|
||||||
wireless_transport.send_nkro(&report->mods);
|
|
||||||
#else
|
#else
|
||||||
wireless_transport.send_nkro(&report->mods);
|
wireless_transport.send_nkro(&report->mods);
|
||||||
#endif
|
#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_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
|
||||||
if (wireless_transport.send_nkro) {
|
if (wireless_transport.send_nkro) {
|
||||||
#ifndef DISABLE_REPORT_BUFFER
|
#ifndef DISABLE_REPORT_BUFFER
|
||||||
|
|
||||||
report_buffer_t report_buffer;
|
report_buffer_t report_buffer;
|
||||||
report_buffer.type = REPORT_TYPE_NKRO;
|
report_buffer.type = REPORT_TYPE_NKRO;
|
||||||
memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
|
memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
|
||||||
report_buffer_enqueue(&report_buffer);
|
report_buffer_enqueue(&report_buffer);
|
||||||
|
|
||||||
wireless_transport.send_nkro(&report->mods);
|
|
||||||
#else
|
#else
|
||||||
wireless_transport.send_nkro(&report->mods);
|
wireless_transport.send_nkro(&report->mods);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user