Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBDevice by
Diff: USBSerial/USBCDC.cpp
- Revision:
- 19:fcb63a105965
- Parent:
- 15:849c0c0f2769
- Child:
- 25:7c72828865f3
diff -r 78bdbce94509 -r fcb63a105965 USBSerial/USBCDC.cpp --- a/USBSerial/USBCDC.cpp Tue Feb 18 11:00:19 2014 +0000 +++ b/USBSerial/USBCDC.cpp Thu Feb 20 11:15:58 2014 +0000 @@ -29,9 +29,9 @@ #define MAX_CDC_REPORT_SIZE MAX_PACKET_SIZE_EPBULK -USBCDC::USBCDC(uint16_t vendor_id, uint16_t product_id, uint16_t product_release): USBDevice(vendor_id, product_id, product_release) { +USBCDC::USBCDC(uint16_t vendor_id, uint16_t product_id, uint16_t product_release, bool connect_blocking): USBDevice(vendor_id, product_id, product_release) { terminal_connected = false; - USBDevice::connect(); + USBDevice::connect(connect_blocking); } bool USBCDC::USBCallback_request(void) {