mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
hidraw: only show the report IDs once
This commit is contained in:
@@ -74,9 +74,10 @@ ratbag_hidraw_parse_report_descriptor(struct ratbag_device *device)
|
||||
|
||||
for (j = 0; j < size; j++) {
|
||||
report_id |= report_desc.value[i + j + 1] << ((size - j - 1) * 8);
|
||||
log_debug(device->ratbag, "report ID %02x\n", report_id);
|
||||
if (hidraw->report_ids)
|
||||
if (hidraw->report_ids) {
|
||||
log_debug(device->ratbag, "report ID %02x\n", report_id);
|
||||
hidraw->report_ids[hidraw->num_report_ids] = report_id;
|
||||
}
|
||||
hidraw->num_report_ids++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user