From c2a0c98d7116d8a8070fdc9ca09f886085d1c73f Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sun, 24 Apr 2016 02:37:34 +0200 Subject: [PATCH] Disable some more warnings in the MIDI examples --- .travis.yml | 4 ++-- examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c9351a50..cdfa64f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,7 @@ env: - PLATFORMIO_CI_SRC=examples/PSBuzz # - PLATFORMIO_CI_SRC=examples/testusbhostFAT - PLATFORMIO_CI_SRC=examples/USB_desc - - PLATFORMIO_CI_SRC=examples/USBH_MIDI/bidrectional_converter + - PLATFORMIO_CI_SRC=examples/USBH_MIDI/bidrectional_converter PLATFORMIO_CI_EXTRA_ARGS="-Wno-error -Wno-parentheses" - PLATFORMIO_CI_SRC=examples/USBH_MIDI/eVY1_sample - PLATFORMIO_CI_SRC=examples/USBH_MIDI/USB_MIDI_converter - PLATFORMIO_CI_SRC=examples/USBH_MIDI/USB_MIDI_converter_multi @@ -74,4 +74,4 @@ install: - platformio lib install 62 416 417 script: - - platformio ci --board=uno --board=teensy31 --board=due --lib="." + - platformio ci --board=uno --board=teensy31 --board=due --lib="." $PLATFORMIO_CI_EXTRA_ARGS 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 68d3472d..db8faadb 100644 --- a/examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino +++ b/examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino @@ -87,7 +87,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; }