projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2d9b8a8
)
Bump buffer pointer as data is written to cc-usb
author
Keith Packard
<keithp@keithp.com>
Tue, 7 Apr 2009 00:09:23 +0000
(17:09 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 7 Apr 2009 00:09:23 +0000
(17:09 -0700)
lib/cc-usb.c
patch
|
blob
|
history
diff --git
a/lib/cc-usb.c
b/lib/cc-usb.c
index a85765af120d61aabe0421cc578108f4e98b94ad..5da36fe90f997748cd6f1321fc0881ff6a5e0d6f 100644
(file)
--- a/
lib/cc-usb.c
+++ b/
lib/cc-usb.c
@@
-226,6
+226,7
@@
cc_usb_printf(struct cc_usb *cc, char *format, ...)
memcpy(cc->out_buf + cc->out_count, b, this_time);
cc->out_count += this_time;
ret -= this_time;
+ b += this_time;
while (cc->out_count >= CC_BUF)
cc_usb_sync(cc);
}