From 8af7e88ba2f6d08baae3c418bcdbb703091b5017 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Tue, 19 Sep 2023 10:42:03 +0200 Subject: [PATCH] gatt-service/hid_device: refactor input param name --- src/ble/gatt-service/hids_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ble/gatt-service/hids_device.c b/src/ble/gatt-service/hids_device.c index 3e1971efc..86923c866 100644 --- a/src/ble/gatt-service/hids_device.c +++ b/src/ble/gatt-service/hids_device.c @@ -104,11 +104,11 @@ static hids_device_t * hids_device_create_instance(void){ return &hids_device; } -static hids_device_report_t * hids_device_get_report_for_value_handle(hids_device_t * device, uint16_t client_configuration_handle){ +static hids_device_report_t * hids_device_get_report_for_value_handle(hids_device_t * device, uint16_t value_handle){ uint8_t pos; uint8_t total_reports = device->hid_input_reports_num + device->hid_output_reports_num + device->hid_feature_reports_num; for (pos = 0 ; pos < total_reports ; pos++){ - if (device->hid_reports[pos].value_handle == client_configuration_handle){ + if (device->hid_reports[pos].value_handle == value_handle){ return &device->hid_reports[pos]; } }