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 db8faadb..d5e3f1db 100644 --- a/examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino +++ b/examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino @@ -69,7 +69,11 @@ void MIDI_poll() pid = Midi.pid; } if (Midi.RecvData( &rcvd, bufMidi) == 0 ) { +#ifdef __ARDUINO_ARC__ + sprintf(buf, "%016llX: ", millis()); // millis() is 64-bits on the Arduino/Genuino 101 +#else sprintf(buf, "%08lX: ", millis()); +#endif Serial.print(buf); Serial.print(rcvd); Serial.print(':');