mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
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:
parent
695325c178
commit
276c7a332a
1 changed files with 4 additions and 0 deletions
|
@ -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(':');
|
||||
|
|
Loading…
Reference in a new issue