1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00
Stacey Sheldon e16be98224 usb cdc: ensure com buffer is drained when no DTE is attached
The CDC layer on F1, F3 and F4 now always acts like an
infinte data sink whenever *either* there is no DTE present
(ie. no terminal program listening) *or* the USB cable is
disconnected.

F1 and F4 were previously checking the cable but not the DTE.
F3 didn't check anything.  The COM layer didn't even ask the
lower layers.

All of this used to mean that any time a caller did a blocking
send to a CDC device without a DTE, it would eventually block
for up to a 5s timeout waiting for space in the Tx buffer.

Conflicts:
	flight/PiOS/STM32F30x/pios_usb_cdc.c
2013-05-11 22:40:58 +02:00
..
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-28 10:19:08 +02:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00
2013-04-25 13:13:41 +03:00