diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-06-02 11:23:22 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-06-02 11:23:22 -0400 |
commit | 8de6c85b7464fdc3518648242ce16142e30ed73d (patch) | |
tree | 22fb6a1b87520e8472142003d093edfab7db616b /src/usb_hid.c | |
parent | f1afbb8e49383d429096bc84fc5855c3929acc50 (diff) |
Implement a basic set of consumer page keycodes.
Diffstat (limited to 'src/usb_hid.c')
-rw-r--r-- | src/usb_hid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usb_hid.c b/src/usb_hid.c index d7594a1..2862d56 100644 --- a/src/usb_hid.c +++ b/src/usb_hid.c @@ -14,14 +14,14 @@ static enum usb_dc_status_code usb_status; static struct device *hid_dev; -int zmk_usb_hid_send_report(const struct zmk_hid_report *report) +int zmk_usb_hid_send_report(const u8_t *report, size_t len) { if (usb_status == USB_DC_SUSPEND) { return usb_wakeup_request(); } - return hid_int_ep_write(hid_dev, (u8_t *)report, sizeof(struct zmk_hid_report), NULL); + return hid_int_ep_write(hid_dev, report, len, NULL); } void usb_hid_status_cb(enum usb_dc_status_code status, const u8_t *params) |