Fix enabled capabilities detection.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-08-14 20:49:29 +02:00
parent 2b1227b105
commit aa7362f88f
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ bool cap_supported(uint16_t cap) {
if (tag == TAG_USB_ENABLED) {
uint16_t ecaps = tag_data[0];
if (tag_len == 2) {
ecaps = (tag_data[1] << 8) | tag_data[0];
ecaps = (tag_data[0] << 8) | tag_data[1];
}
return (ecaps & cap);
}