Fixed build.

This commit is contained in:
Francois Best 2012-09-06 20:43:20 +02:00
parent 69604e458b
commit 573bd35e8a
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@
MIDI_SOFTSERIAL_TX_PIN); MIDI_SOFTSERIAL_TX_PIN);
# else # else
# error Todo: implement SoftwareSerial for avr core. # error Todo: implement SoftwareSerial for avr core.
# endif
# undef MIDI_SERIAL_PORT # undef MIDI_SERIAL_PORT
# define MIDI_SERIAL_PORT softSerialClass # define MIDI_SERIAL_PORT softSerialClass
# else # else

View File

@ -143,14 +143,14 @@ void MidiInterface::sendSysEx(unsigned int inLength,
{ {
MIDI_SERIAL_PORT.write(0xF0); MIDI_SERIAL_PORT.write(0xF0);
for (int i=0;i<inLength;++i) for (unsigned int i=0;i<inLength;++i)
MIDI_SERIAL_PORT.write(inArray[i]); MIDI_SERIAL_PORT.write(inArray[i]);
MIDI_SERIAL_PORT.write(0xF7); MIDI_SERIAL_PORT.write(0xF7);
} }
else else
{ {
for (int i=0;i<inLength;++i) for (unsigned int i=0;i<inLength;++i)
MIDI_SERIAL_PORT.write(inArray[i]); MIDI_SERIAL_PORT.write(inArray[i]);
} }