device: Add spam output for raw windows device

This commit is contained in:
rdb 2021-12-26 12:23:20 +01:00
parent c38d582f8c
commit 8b19761844

View File

@ -663,6 +663,13 @@ process_report(PCHAR ptr, size_t size) {
if (status == HIDP_STATUS_SUCCESS) { if (status == HIDP_STATUS_SUCCESS) {
for (ULONG di = 0; di < count; ++di) { for (ULONG di = 0; di < count; ++di) {
if (data[di].DataIndex != _hat_data_index) { if (data[di].DataIndex != _hat_data_index) {
if (device_cat.is_spam()) {
device_cat.spam()
<< "Read RawValue " << data[di].RawValue
<< " for DataIndex " << data[di].DataIndex
<< " from raw device " << _path << "\n";
}
if (data[di].DataIndex >= _indices.size()) { if (data[di].DataIndex >= _indices.size()) {
if (device_cat.is_debug()) { if (device_cat.is_debug()) {
device_cat.debug() device_cat.debug()