usb_host: report bInterfaceProtocol too

Thanks to Raphael for the patch.
This commit is contained in:
Christian Helmuth 2021-08-27 16:09:31 +02:00
parent ece837e8b8
commit a362505e8a

View File

@ -806,7 +806,11 @@ class Device : public List<Device>::Element
uint8_t const class_value =
interface.cur_altsetting->desc.bInterfaceClass;
uint8_t const protocol_value =
interface.cur_altsetting->desc.bInterfaceProtocol;
xml.attribute("class", Value(Hex(class_value)));
xml.attribute("protocol", Value(Hex(protocol_value)));
});
});
}