Merge pull request #2346 from openmv/pyopenmv_fix

tools/pyopenmv: Fix arch string.
This commit is contained in:
Ibrahim Abdelkader 2024-08-03 11:12:05 +02:00 committed by GitHub
commit dfbe35a446
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,7 +216,7 @@ def enable_fb(enable):
def arch_str():
__serial.write(struct.pack("<BBI", __USBDBG_CMD, __USBDBG_ARCH_STR, 64))
return __serial.read(64).split('\0', 1)[0]
return __serial.read(64).split(b'\0', 1)[0]
if __name__ == '__main__':
if len(sys.argv)!= 3: