Skip to content

Commit 958cb7b

Browse files
authored
Merge pull request #2 from Exxerial/patch-2
Fix : TypeError: can't concat str to bytes
2 parents ef4b730 + 204c8f9 commit 958cb7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numap/core/usb_cs_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ def default_handler(self, req):
6060
def get_descriptor(self, usb_type='fullspeed', valid=False):
6161
descriptor_type = DescriptorType.cs_interface
6262
length = len(self.cs_config) + 2
63-
response = struct.pack('BB', length & 0xff, descriptor_type) + self.cs_config
63+
response = struct.pack('BB', length & 0xff, descriptor_type) + self.cs_config.encode("utf-8")
6464
return response

0 commit comments

Comments
 (0)