Fixing issue #34: Several ifdefs missing in midi_devices.hpp

Thanks to @dronus!
pull/37/head
Holger Wirtz 4 years ago
parent 7c8e516caf
commit f4bd4c5684
  1. 12
      midi_devices.hpp

@ -1732,9 +1732,15 @@ void send_sysex_voice(uint8_t midi_channel, uint8_t* data)
void send_sysex_bank(uint8_t midi_channel, uint8_t* bank_data)
{
#ifdef MIDI_DEVICE_DIN
midi_serial.sendSysEx(4104, bank_data); // Send to DIN MIDI
#endif
#ifdef MIDI_DEVICE_USB
midi_usb.sendSysEx(4104, bank_data); // Send to USB MIDI
#endif
#ifdef MIDI_DEVICE_USB_HOST
usbMIDI.sendSysEx(4104, bank_data); // Send to USB-HOST MIDI
#endif
}
void send_sysex_param(uint8_t midi_channel, uint8_t var, uint8_t val, uint8_t param_group)
@ -1755,9 +1761,15 @@ void send_sysex_param(uint8_t midi_channel, uint8_t var, uint8_t val, uint8_t pa
}
s[4] = val & 0x7f;
#ifdef MIDI_DEVICE_DIN
midi_serial.sendSysEx(5, s); // Send to DIN MIDI
#endif
#ifdef MIDI_DEVICE_USB
midi_usb.sendSysEx(5, s); // Send to USB MIDI
#endif
#ifdef MIDI_DEVICE_USB_HOST
usbMIDI.sendSysEx(5, s); // Send to USB-HOST MIDI
#endif
}
#endif // MIDI_DEVICES_H

Loading…
Cancel
Save