feat(hid): Make keypad report boot friendly

Add missing byte to make keypad report boot friendly.
This commit is contained in:
innovaker
2020-10-27 17:42:00 +00:00
parent 8ce7d8de01
commit c402e953f6
2 changed files with 16 additions and 2 deletions

View File

@@ -9,8 +9,8 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/hid.h>
static struct zmk_hid_keypad_report kp_report = {.report_id = 1,
.body = {.modifiers = 0, .keys = {0}}};
static struct zmk_hid_keypad_report kp_report = {
.report_id = 1, .body = {.modifiers = 0, ._reserved = 0, .keys = {0}}};
static struct zmk_hid_consumer_report consumer_report = {.report_id = 2, .body = {.keys = {0}}};