Skip to content

Commit

Permalink
const variable in uni_bt_le
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed Dec 20, 2024
1 parent 1fab81f commit 426069a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/bluepad32/bt/uni_bt_le.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static void adv_event_get_data(const uint8_t* packet, uint16_t* appearance, char
get_advertisement_data(ad_data, ad_len, appearance, name);
}

static void parse_report(uint8_t* packet, uint16_t size) {
static void parse_report(const uint8_t* packet, uint16_t size) {
uint16_t service_index;
uint16_t hids_cid;
uni_hid_device_t* device;
Expand Down Expand Up @@ -236,6 +236,9 @@ static void parse_report(uint8_t* packet, uint16_t size) {
report_data = gattservice_subevent_hid_report_get_report(packet);
report_len = gattservice_subevent_hid_report_get_report_len(packet);

printf_hexdump(report_data, report_len);
printf_hexdump(packet, size);

uni_hid_parse_input_report(device, report_data, report_len);
uni_hid_device_process_controller(device);
}
Expand Down

0 comments on commit 426069a

Please sign in to comment.