summaryrefslogtreecommitdiff
path: root/cctools/lib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-08-09 20:43:10 -0700
committerKeith Packard <keithp@keithp.com>2009-08-09 20:43:10 -0700
commitf48dcffae761700355a17b59345d55a60703f0c4 (patch)
tree7b57c768c1402129a0ed99dd590183bdfa748d07 /cctools/lib
parentcd5456f18e4b39ad76d5549df91a0e0cfb18a2e9 (diff)
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 <keithp@keithp.com>
Diffstat (limited to 'cctools/lib')
-rw-r--r--cctools/lib/cc-usb.c1
1 files changed, 1 insertions, 0 deletions
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;
}