usb: change api so that every packet sent is crc32c, update python usb api, add automated tests for usb.

This commit is contained in:
ITotalJustice
2025-08-31 06:12:02 +01:00
parent b6b1af5959
commit 22e965521a
13 changed files with 469 additions and 71 deletions

View File

@@ -127,14 +127,14 @@ if __name__ == '__main__':
else:
raise ValueError('must be a file!')
usb: Usb = Usb()
usb = Usb()
try:
# get usb endpoints.
usb.wait_for_connect()
# build string table.
string_table: bytes
string_table = bytes()
for [_, path] in paths:
string_table += bytes(Path(path).name.__str__(), 'utf8') + b'\n'