Działająca myszka

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Apr 20 10:45:54 2015 +0100
Parent:
50:bee5808e91e3
Commit message:
Synchronized with git revision 016b9ad9cba789b99acee1102802355338120b29

Full URL: https://github.com/mbedmicro/mbed/commit/016b9ad9cba789b99acee1102802355338120b29/

NXP's HAL - Fix PwmOut period using SCT

Changed in this revision

USBMIDI/MIDIMessage.h Show annotated file Show diff for this revision Revisions of this file
USBMIDI/USBMIDI.cpp Show annotated file Show diff for this revision Revisions of this file
USBMIDI/USBMIDI.h Show annotated file Show diff for this revision Revisions of this file
diff -r bee5808e91e3 -r a3c50882f2c5 USBMIDI/MIDIMessage.h
--- a/USBMIDI/MIDIMessage.h	Thu Apr 16 11:46:08 2015 +0100
+++ b/USBMIDI/MIDIMessage.h	Mon Apr 20 10:45:54 2015 +0100
@@ -44,9 +44,9 @@
 /** A MIDI message container */
 class MIDIMessage {
 public:
-    MIDIMessage() {}
+    MIDIMessage() : length(4) {}
 
-    MIDIMessage(uint8_t *buf) {
+    MIDIMessage(uint8_t *buf) : length(4) {
         for (int i = 0; i < 4; i++)
             data[i] = buf[i];
     }
@@ -270,7 +270,7 @@
     }
 
     uint8_t data[MAX_MIDI_MESSAGE_SIZE+1];
-    uint8_t length=4;
+    uint8_t length;
 };
 
 #endif
diff -r bee5808e91e3 -r a3c50882f2c5 USBMIDI/USBMIDI.cpp
--- 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();
 }
diff -r bee5808e91e3 -r a3c50882f2c5 USBMIDI/USBMIDI.h
--- a/USBMIDI/USBMIDI.h	Thu Apr 16 11:46:08 2015 +0100
+++ b/USBMIDI/USBMIDI.h	Mon Apr 20 10:45:54 2015 +0100
@@ -103,8 +103,8 @@
 
 private:
     uint8_t data[MAX_MIDI_MESSAGE_SIZE+1];
-    uint8_t cur_data=0;
-    bool data_end = true;
+    uint8_t cur_data;
+    bool data_end;
     
     void (*midi_evt)(MIDIMessage);
 };