diff --git a/.travis.yml b/.travis.yml index e280d86f..c9351a50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,9 +68,10 @@ install: # # Libraries from PlatformIO Library Registry: # - # http://platformio.org/#!/lib/show/416/TinyGPS - # http://platformio.org/#!/lib/show/417/SPI4Teensy3 - - platformio lib install 416 417 + # http://platformio.org/lib/show/62/MIDI + # http://platformio.org/lib/show/416/TinyGPS + # http://platformio.org/lib/show/417/SPI4Teensy3 + - platformio lib install 62 416 417 script: - platformio ci --board=uno --board=teensy31 --board=due --lib="." diff --git a/examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino b/examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino index b2a1a43f..68d3472d 100644 --- a/examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino +++ b/examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino @@ -43,10 +43,10 @@ void setup() void loop() { - unsigned long t1; + //unsigned long t1; Usb.Task(); - t1 = micros(); + //t1 = micros(); if ( Usb.getUsbTaskState() == USB_STATE_RUNNING ) { MIDI_poll(); @@ -69,7 +69,7 @@ void MIDI_poll() pid = Midi.pid; } if (Midi.RecvData( &rcvd, bufMidi) == 0 ) { - sprintf(buf, "%08X: ", millis()); + sprintf(buf, "%08lX: ", millis()); Serial.print(buf); Serial.print(rcvd); Serial.print(':'); diff --git a/examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino b/examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino index c8fb4172..589fe20d 100644 --- a/examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino +++ b/examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino @@ -81,7 +81,7 @@ void doDelay(unsigned long t1, unsigned long t2, unsigned long delayTime) unsigned long t3; if ( t1 > t2 ) { - t3 = (4294967295 - t1 + t2); + t3 = (0xFFFFFFFF - t1 + t2); } else { t3 = t2 - t1; } diff --git a/examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino b/examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino index bbc8bf0b..ffed71ab 100644 --- a/examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino +++ b/examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino @@ -89,7 +89,7 @@ void doDelay(unsigned long t1, unsigned long t2, unsigned long delayTime) unsigned long t3; if ( t1 > t2 ) { - t3 = (4294967295 - t1 + t2); + t3 = (0xFFFFFFFF - t1 + t2); } else { t3 = t2 - t1; } diff --git a/examples/USBH_MIDI/bidrectional_converter/bidrectional_converter.ino b/examples/USBH_MIDI/bidrectional_converter/bidrectional_converter.ino index 4a45bc79..f681cfb9 100644 --- a/examples/USBH_MIDI/bidrectional_converter/bidrectional_converter.ino +++ b/examples/USBH_MIDI/bidrectional_converter/bidrectional_converter.ino @@ -99,7 +99,7 @@ void doDelay(unsigned long t1, unsigned long t2, unsigned long delayTime) unsigned long t3; if ( t1 > t2 ) { - t3 = (4294967295 - t1 + t2); + t3 = (0xFFFFFFFF - t1 + t2); } else { t3 = t2 - t1; } diff --git a/examples/USBH_MIDI/eVY1_sample/eVY1_sample.ino b/examples/USBH_MIDI/eVY1_sample/eVY1_sample.ino index c5984d2b..2d42c3d9 100644 --- a/examples/USBH_MIDI/eVY1_sample/eVY1_sample.ino +++ b/examples/USBH_MIDI/eVY1_sample/eVY1_sample.ino @@ -69,7 +69,7 @@ void MIDI_poll() Midi.SendSysEx(exdata, sizeof(exdata)); delay(500); } - uint8_t size = Midi.RecvData(inBuf); + Midi.RecvData(inBuf); } //note On