Fixed degradation

This commit is contained in:
Yuuichi Akagawa 2018-03-25 01:18:10 +09:00
parent 0e46fee1d6
commit beaa854e2a

View file

@ -61,7 +61,8 @@ void MIDI_poll()
Serial.println(buf); Serial.println(buf);
} }
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(':');