1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-28 06:24:10 +01:00

LP-602 Bugfix in pios_usb_cdc: reset tx_start on device init to prevent stalled tx

This commit is contained in:
Eric Price 2018-10-16 11:10:47 +02:00
parent 3f2d89fc11
commit ca82317970

View File

@ -607,6 +607,7 @@ static void PIOS_USB_CDC_DATA_IF_Init(uint32_t usb_cdc_id)
PIOS_USB_CDC_DATA_EP_OUT_Callback,
(uint32_t)usb_cdc_dev);
usb_cdc_dev->usb_data_if_enabled = true;
usb_cdc_dev->tx_active = false;
}
static void PIOS_USB_CDC_DATA_IF_DeInit(uint32_t usb_cdc_id)