From f48dcffae761700355a17b59345d55a60703f0c4 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 9 Aug 2009 20:43:10 -0700 Subject: [PATCH] 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 --- cctools/lib/cc-usb.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2