From a8ddb7eeff2e0fedf2afa9a6e2689bcc1f130eb4 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 26 Sep 2024 15:51:11 +0200 Subject: [PATCH] btstack_hid_parser: fix build with log_debug --- src/btstack_hid_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/btstack_hid_parser.c b/src/btstack_hid_parser.c index 622391521..2c3b9bacc 100644 --- a/src/btstack_hid_parser.c +++ b/src/btstack_hid_parser.c @@ -424,7 +424,7 @@ void btstack_hid_usage_iterator_get_item(btstack_hid_usage_iterator_t * iterator iterator->available_usages--; if (iterator->usage_range && (iterator->usage_minimum > iterator->usage_maximum)){ // usage min - max range smaller than report count, ignore remaining bit in report - log_debug("Ignoring %u items without Usage", parser->required_usages); + log_debug("Ignoring %u items without Usage", iterator->required_usages); iterator->report_pos_in_bit += iterator->global_report_size * iterator->required_usages; iterator->required_usages = 0; }