mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed degradation
This commit is contained in:
parent
0e46fee1d6
commit
beaa854e2a
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ void MIDI_poll()
|
|||
Serial.println(buf);
|
||||
}
|
||||
if (Midi.RecvData( &rcvd, bufMidi) == 0 ) {
|
||||
sprintf(buf, "%08lX: ", (uint32_t)millis());
|
||||
uint32_t time = (uint32_t)millis();
|
||||
sprintf(buf, "%04X%04X: ", (uint16_t)(time >> 16), (uint16_t)(time & 0xFFFF)); // Split variable to prevent warnings on the ESP8266 platform
|
||||
Serial.print(buf);
|
||||
Serial.print(rcvd);
|
||||
Serial.print(':');
|
||||
|
|
Loading…
Reference in a new issue