USB device stack, fixes for USBSerial & KL25Z
Fork of USBDevice by
Diff: USBSerial/USBSerial.h
- Revision:
- 19:fcb63a105965
- Parent:
- 15:849c0c0f2769
- Child:
- 23:c7639faed2eb
diff -r 78bdbce94509 -r fcb63a105965 USBSerial/USBSerial.h --- a/USBSerial/USBSerial.h Tue Feb 18 11:00:19 2014 +0000 +++ b/USBSerial/USBSerial.h Thu Feb 20 11:15:58 2014 +0000 @@ -53,9 +53,10 @@ * @param vendor_id Your vendor_id (default: 0x1f00) * @param product_id Your product_id (default: 0x2012) * @param product_release Your preoduct_release (default: 0x0001) + * @param connect_blocking define if the connection must be blocked if USB not plugged in * */ - USBSerial(uint16_t vendor_id = 0x1f00, uint16_t product_id = 0x2012, uint16_t product_release = 0x0001): USBCDC(vendor_id, product_id, product_release), buf(128){ + USBSerial(uint16_t vendor_id = 0x1f00, uint16_t product_id = 0x2012, uint16_t product_release = 0x0001, bool connect_blocking = true): USBCDC(vendor_id, product_id, product_release, connect_blocking), buf(128){ settingsChangedCallback = 0; };