tools/pyopenmv: Update GET_STATE command.

This commit is contained in:
iabdalkader 2024-07-16 14:17:11 +03:00
parent 3e61aa8933
commit b3b2cb0349

View File

@ -77,7 +77,7 @@ def fb_size():
def read_state(): def read_state():
__serial.write(struct.pack("<BBI", __USBDBG_CMD, __USBDBG_GET_STATE, 64)) __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 text = None
if flags & __USBDBG_STATE_FLAGS_TEXT: if flags & __USBDBG_STATE_FLAGS_TEXT: