diff options
| author | Marti Bolivar <mbolivar@leaflabs.com> | 2013-01-17 18:08:39 -0500 |
|---|---|---|
| committer | Marti Bolivar <mbolivar@leaflabs.com> | 2013-01-17 18:08:39 -0500 |
| commit | 0dbf94bf31077b77ffd893d8396bdfb34ccca341 (patch) | |
| tree | c57eda4542c0bb85f9354e877c0f159dd34fce6f /notes | |
| parent | cea8158e97f21bde96f3561baade15400fafdfd2 (diff) | |
usb_cdcacm.c: Fixups for usb_cdcacm_tx().
- Check if we're transmitting (instead of how many bytes are left
untransmitted) before bailing, in case we're transmitting a
zero-length packet.
- Set transmitting=1 before setting the endpoint valid to avoid races
with the USB interrupt.
- Eliminate some duplicated code.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'notes')
0 files changed, 0 insertions, 0 deletions
