btstack_hid_parser: fix build with log_debug

This commit is contained in:
Matthias Ringwald 2024-09-26 15:51:11 +02:00
parent db449e89e7
commit a8ddb7eeff

View File

@ -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;
}