kopia lustrzana https://github.com/micropython/micropython-lib
rodzic
942c80cbd0
commit
befd307535
|
@ -166,7 +166,9 @@ class _Device:
|
|||
# Keep track of the interface and endpoint indexes
|
||||
itf_num = builtin_driver.itf_max
|
||||
ep_num = max(builtin_driver.ep_max, 1) # Endpoint 0 always reserved for control
|
||||
while len(strs) < builtin_driver.str_max - 1: # This is possibly unnecessary or wrong because
|
||||
while (
|
||||
len(strs) < builtin_driver.str_max - 1
|
||||
): # This is possibly unnecessary or wrong because
|
||||
# https://docs.micropython.org/en/latest/library/machine.USBDevice.html
|
||||
# states all string values except index 0 should be plain ASCII
|
||||
strs.append(None) # Reserve other string indexes used by builtin drivers
|
||||
|
|
Ładowanie…
Reference in New Issue