From e2c2b10c79cd6eba09a38a4ded290ea3ab07f7da Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 1 Nov 2018 12:36:09 +0100 Subject: [PATCH] hid_device: fix warning --- src/classic/hid_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classic/hid_device.c b/src/classic/hid_device.c index d6432040b..6b53fd82d 100644 --- a/src/classic/hid_device.c +++ b/src/classic/hid_device.c @@ -724,7 +724,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * pack case L2CAP_EVENT_CAN_SEND_NOW: local_cid = l2cap_event_can_send_now_get_local_cid(packet); - device = hid_device_get_instance_for_cid(l2cap_event_can_send_now_get_local_cid(packet)); + device = hid_device_get_instance_for_cid(local_cid); if (!device) return; switch (device->state){