mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #2346 from openmv/pyopenmv_fix
tools/pyopenmv: Fix arch string.
This commit is contained in:
commit
dfbe35a446
@ -216,7 +216,7 @@ def enable_fb(enable):
|
|||||||
|
|
||||||
def arch_str():
|
def arch_str():
|
||||||
__serial.write(struct.pack("<BBI", __USBDBG_CMD, __USBDBG_ARCH_STR, 64))
|
__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 __name__ == '__main__':
|
||||||
if len(sys.argv)!= 3:
|
if len(sys.argv)!= 3:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user