Skip to content

Commit

Permalink
set bcdDevice default value
Browse files Browse the repository at this point in the history
  • Loading branch information
nondebug committed Oct 11, 2023
1 parent 0c7ace0 commit a256a3a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2337,10 +2337,9 @@ of {{USBBlocklistEntry}} objects produced by the following algorithm:
hexadecimal number.
1. Let |idProduct| be the result of interpreting |components|[1] as a
hexadecimal number.
1. If the [=list/size=] of |components| is:
* 2: Let |bcdDevice| be <code>0xFFFF</code>.
* 3: Let |bcdDevice| be the result of interpreting |components|[2] as
a hexadecimal number.
1. Let |bcdDevice| be <code>0xFFFF</code>.
1. If the [=list/size=] of |components| is 3, set |bcdDevice| to the
result of interpreting |components|[2] as a hexadecimal number.
1. [=list/Append=] a new {{USBBlocklistEntry}} with |idVendor|,
|idProduct|, and |bcdDevice| to |blocklist|.
1. Return |blocklist|.
Expand Down

0 comments on commit a256a3a

Please sign in to comment.