From d97f4f2e0c450dcdb8ef653fad612f0478a59625 Mon Sep 17 00:00:00 2001 From: ReFil <31960031+ReFil@users.noreply.github.com> Date: Sun, 29 Oct 2023 11:26:33 +0000 Subject: [PATCH] try this --- app/src/hog.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/hog.c b/app/src/hog.c index dae2ce52118..88845dc1fce 100644 --- a/app/src/hog.c +++ b/app/src/hog.c @@ -185,9 +185,8 @@ static ssize_t read_hids_trackpad_selective_report(struct bt_conn *conn, static ssize_t read_hids_trackpad_certification_report(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, uint16_t len, uint16_t offset) { - struct zmk_hid_ptp_feature_certification_report *report_body = - zmk_hid_ptp_get_feature_certification_report(); - return bt_gatt_attr_read(conn, attr, buf, len, offset, report_body, + uint8_t *data = (uint8_t *)zmk_hid_ptp_get_feature_selective_report(); + return bt_gatt_attr_read(conn, attr, buf, len, offset, data, sizeof(struct zmk_hid_ptp_feature_certification_report)); }