Skip to content

Commit c2a0c98

Browse files
committed
Disable some more warnings in the MIDI examples
1 parent 738adc6 commit c2a0c98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ env:
5151
- PLATFORMIO_CI_SRC=examples/PSBuzz
5252
# - PLATFORMIO_CI_SRC=examples/testusbhostFAT
5353
- PLATFORMIO_CI_SRC=examples/USB_desc
54-
- PLATFORMIO_CI_SRC=examples/USBH_MIDI/bidrectional_converter
54+
- PLATFORMIO_CI_SRC=examples/USBH_MIDI/bidrectional_converter PLATFORMIO_CI_EXTRA_ARGS="-Wno-error -Wno-parentheses"
5555
- PLATFORMIO_CI_SRC=examples/USBH_MIDI/eVY1_sample
5656
- PLATFORMIO_CI_SRC=examples/USBH_MIDI/USB_MIDI_converter
5757
- PLATFORMIO_CI_SRC=examples/USBH_MIDI/USB_MIDI_converter_multi
@@ -74,4 +74,4 @@ install:
7474
- platformio lib install 62 416 417
7575

7676
script:
77-
- platformio ci --board=uno --board=teensy31 --board=due --lib="."
77+
- platformio ci --board=uno --board=teensy31 --board=due --lib="." $PLATFORMIO_CI_EXTRA_ARGS

examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void doDelay(unsigned long t1, unsigned long t2, unsigned long delayTime)
8787
unsigned long t3;
8888

8989
if ( t1 > t2 ) {
90-
t3 = (4294967295 - t1 + t2);
90+
t3 = (0xFFFFFFFF - t1 + t2);
9191
} else {
9292
t3 = t2 - t1;
9393
}

0 commit comments

Comments
 (0)