#!/usr/bin/env python3 """LinkRx: reassembly, dedupe, acks, commit and digest resync.""" import struct from espnow_rx import LinkRx, MSG_DATA, MSG_ACK, MSG_DIGEST, MSG_RESYNC, F_ACK, F_COMMIT from beat_sync import BeatSync M = b"\x01\x02\x03\x04\x05\x06" def data(seq, payload, idx=0, cnt=1, flags=F_ACK, ver=0): return struct.pack("