Sync USB data after each memory write command
[fw/altos] / cctools / lib / cc-usb.c
index 7eedbb473c0d83053118ec18094dad4466aecba5..81309983fd46b7487aaba7cabc005051373322be 100644 (file)
@@ -282,6 +282,7 @@ cc_usb_write_memory(struct cc_usb *cc, uint16_t addr, uint8_t *bytes, int len)
        cc_usb_printf(cc, "O %x %x\n", len, addr);
        while (len--)
                cc_usb_printf(cc, "%02x", *bytes++);
+       cc_usb_sync(cc);
        return 0;
 }