Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Oct 29, 2023
1 parent be25060 commit d97f4f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/hog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit d97f4f2

Please sign in to comment.