mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Split variable to prevent warnings on the ESP8266 platform
See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/230952435#L1149
This commit is contained in:
parent
14fec8dab8
commit
18a36f8627
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ void MIDI_poll()
|
||||||
pid = Midi.pid;
|
pid = Midi.pid;
|
||||||
}
|
}
|
||||||
if (Midi.RecvData( &rcvd, bufMidi) == 0 ) {
|
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(buf);
|
||||||
Serial.print(rcvd);
|
Serial.print(rcvd);
|
||||||
Serial.print(':');
|
Serial.print(':');
|
||||||
|
|
Loading…
Reference in a new issue