mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
CDC and USART device drivers were not all clearing their device structs before using them. This specifically caused crashes in the case where the upper COM layer was binding only a Tx path. The Rx path callback in the lower driver was uninitialized random data and would result in the lower driver faulting when it tried to call the callback. Conflicts: flight/PiOS/STM32F30x/pios_usart.c flight/PiOS/STM32F30x/pios_usb_cdc.c flight/PiOS/STM32F30x/pios_usb_hid.c