1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight/PiOS
Stacey Sheldon 2cf1fe93c6 com: don't block forever waiting for a transmitter
Not all transmitters will continue to run when disconnected.
USB is one example of this.  When the USB cable was disconnected,
any transmitter blocked here would wait forever.

This was particularly noticeable when the telemetry Tx task
blocked forever on USB disconnect.  This also resulted in
the telemetry Rx task blocking forever waiting on the UAVTalk
connection lock.

We now block for a max of 5s waiting for space in the transmit
buffer.
2011-12-30 23:05:37 -05:00
..
Boards com-bridge: add usart to usb vcp bridge 2011-12-30 23:05:34 -05:00
Common com: don't block forever waiting for a transmitter 2011-12-30 23:05:37 -05:00
inc usb: clean up pios hooks into stm32 usb_core 2011-12-30 23:05:33 -05:00
STM32F10x usb cdc: return valid data in response to SetLineCoding 2011-12-30 23:05:36 -05:00
pios.h Merge branch 'next' into CC_GPS 2011-11-11 11:44:11 +01:00