mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
tools/pyopenmv: Update GET_STATE command.
This commit is contained in:
parent
3e61aa8933
commit
b3b2cb0349
@ -77,7 +77,7 @@ def fb_size():
|
||||
|
||||
def read_state():
|
||||
__serial.write(struct.pack("<BBI", __USBDBG_CMD, __USBDBG_GET_STATE, 64))
|
||||
flags, w, h, size, res0, res1, text_buf = struct.unpack("IIIIII40s", __serial.read(64))
|
||||
flags, w, h, size, text_buf = struct.unpack("IIII48s", __serial.read(64))
|
||||
|
||||
text = None
|
||||
if flags & __USBDBG_STATE_FLAGS_TEXT:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user