USB CDC ACM: fix sending loop (and spacing)

This commit is contained in:
King Kévin 2020-11-27 17:06:21 +01:00
parent 2249f460e3
commit 0fe7e1fd39
1 changed files with 5 additions and 6 deletions

View File

@ -364,7 +364,6 @@ static void usb_cdcacm_data_tx_cb(usbd_device *usbd_dev, uint8_t ep)
} else {
usbd_ep_write_packet(usb_device, usb_cdcacm_data_endpoints[1].bEndpointAddress, NULL, 0); // trigger empty tx for a later callback
}
usbd_poll(usb_device); // ensure the data gets sent
}
/** USB CDC ACM communication callback