aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2013-04-15 15:01:58 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2013-04-15 15:01:58 -0400
commit4361c610124fb6e5030631b7625c14f245fe1743 (patch)
treec80ca7786061d02721608db1c0952efc65969b46 /libmaple
parent70f704b96221cf1d0227304f30b43566d770db33 (diff)
downloadlibrambutan-4361c610124fb6e5030631b7625c14f245fe1743.tar.gz
librambutan-4361c610124fb6e5030631b7625c14f245fe1743.zip
usb_cdcacm: Reset transmitting flag in usbReset().
Thanks to Manuel Odenahl for the fix. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/usb/stm32f1/usb_cdcacm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/usb/stm32f1/usb_cdcacm.c b/libmaple/usb/stm32f1/usb_cdcacm.c
index dfd8d56..d4d4262 100644
--- a/libmaple/usb/stm32f1/usb_cdcacm.c
+++ b/libmaple/usb/stm32f1/usb_cdcacm.c
@@ -609,6 +609,7 @@ static void usbReset(void) {
n_unread_bytes = 0;
n_unsent_bytes = 0;
rx_offset = 0;
+ transmitting = 0;
}
static RESULT usbDataSetup(uint8 request) {