From: Keith Packard Date: Mon, 10 Aug 2009 03:43:10 +0000 (-0700) Subject: Sync USB data after each memory write command X-Git-Tag: 0.5~11 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=f48dcffae761700355a17b59345d55a60703f0c4;ds=sidebyside Sync USB data after each memory write command This makes sure we flush the USB link often enough for the other end to keep up. Signed-off-by: Keith Packard --- diff --git a/cctools/lib/cc-usb.c b/cctools/lib/cc-usb.c index 7eedbb47..81309983 100644 --- a/cctools/lib/cc-usb.c +++ b/cctools/lib/cc-usb.c @@ -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; }