Skip to content

Commit df07391

Browse files
Fix redefinition error in midi module
1 parent 3d85040 commit df07391

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/midi_interface.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#endif
4545

4646

47-
4847
#if defined(ML_SYNTH_INLINE_DECLARATION) || defined(ML_SYNTH_INLINE_DEFINITION)
4948
#ifndef MIDI_INTERFACE_H
5049
#define MIDI_INTERFACE_H
@@ -60,7 +59,6 @@
6059
#endif
6160

6261

63-
6462
/*
6563
* structure is used to build the mapping table
6664
*/
@@ -727,7 +725,7 @@ void Midi_SendRaw(uint8_t *msg)
727725
MidiPort2.serial->write(msg, 3);
728726
}
729727
}
730-
#endif /* MIDI_TX2_PIN */
728+
#else /* MIDI_TX2_PIN */
731729

732730
#ifdef MIDI_TX1_PIN
733731
void Midi_SendShortMessage(uint8_t *msg)
@@ -765,6 +763,7 @@ void Midi_SendRaw(uint8_t *msg)
765763
}
766764
}
767765
#endif /* MIDI_TX1_PIN */
766+
#endif /* MIDI_TX2_PIN */
768767
#endif
769768
#endif
770769

0 commit comments

Comments
 (0)