millis() is 64-bits on the Arduino/Genuino 101

See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/198814525
This commit is contained in:
Kristian Sloth Lauszus 2017-02-06 14:04:33 +01:00
parent 695325c178
commit 276c7a332a

View file

@ -69,7 +69,11 @@ void MIDI_poll()
pid = Midi.pid; pid = Midi.pid;
} }
if (Midi.RecvData( &rcvd, bufMidi) == 0 ) { 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()); sprintf(buf, "%08lX: ", millis());
#endif
Serial.print(buf); Serial.print(buf);
Serial.print(rcvd); Serial.print(rcvd);
Serial.print(':'); Serial.print(':');