projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Sync USB data after each memory write command
[fw/altos]
/
cctools
/
lib
/
cc-usb.c
diff --git
a/cctools/lib/cc-usb.c
b/cctools/lib/cc-usb.c
index 7eedbb473c0d83053118ec18094dad4466aecba5..81309983fd46b7487aaba7cabc005051373322be 100644
(file)
--- 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;
}