Skip to content

Commit c69bb30

Browse files
authored
Change Define Template
1 parent 26eeb92 commit c69bb30

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/hardware/BLEMIDI_Client_ESP32.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,8 @@ END_BLEMIDI_NAMESPACE
628628
/*! \brief Create an instance for ESP32 named <DeviceName>, and advertise it like "Prefix + <DeviceName> + Subfix"
629629
It will try to connect to a specific server with equal name or addr than <DeviceName>. If <DeviceName> is "", it will connect to first midi server
630630
*/
631-
#define BLEMIDI_CREATE_INSTANCE(DeviceName, Name) \
632-
BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_Client_ESP32<BLEMIDI_NAMESPACE::DefaultSettings>, BLEMIDI_NAMESPACE::DefaultSettings> BLE##Name(DeviceName); \
633-
MIDI_NAMESPACE::MidiInterface<BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_Client_ESP32<BLEMIDI_NAMESPACE::DefaultSettings>, BLEMIDI_NAMESPACE::DefaultSettings>, BLEMIDI_NAMESPACE::MySettings> Name((BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_Client_ESP32<BLEMIDI_NAMESPACE::DefaultSettings>, BLEMIDI_NAMESPACE::DefaultSettings> &)BLE##Name);
631+
#define BLEMIDI_CREATE_INSTANCE(DeviceName, Name) \
632+
BLEMIDI_CREATE_CUSTOM_INSTANCE (DeviceName, Name, BLEMIDI_NAMESPACE::DefaultSettings)
634633

635634
/*! \brief Create a default instance for ESP32 named BLEMIDI-CLIENT.
636635
It will try to connect to first midi ble server found.

0 commit comments

Comments
 (0)