USB device stack
Dependents: mbed_11U24_CapacitorDose_V001
Diff: USBMIDI/USBMIDI.cpp
- Revision:
- 50:a3c50882f2c5
- Parent:
- 48:03f8e580579a
--- a/USBMIDI/USBMIDI.cpp Thu Apr 16 11:46:08 2015 +0100 +++ b/USBMIDI/USBMIDI.cpp Mon Apr 20 10:45:54 2015 +0100 @@ -20,7 +20,9 @@ #include "USBMIDI.h" -USBMIDI::USBMIDI(uint16_t vendor_id, uint16_t product_id, uint16_t product_release): USBDevice(vendor_id, product_id, product_release) { +USBMIDI::USBMIDI(uint16_t vendor_id, uint16_t product_id, uint16_t product_release) + : USBDevice(vendor_id, product_id, product_release), cur_data(0), data_end(true) +{ midi_evt = NULL; USBDevice::connect(); }