Skip to content

Commit 6045d22

Browse files
author
lathoub
committed
setName
1 parent 3b08fec commit 6045d22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BLEMIDI_Transport.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ class BLEMIDI_Transport
176176
void (*_connectedCallback)() = nullptr;
177177
void (*_disconnectedCallback)() = nullptr;
178178

179+
void setName(const char *deviceName)
180+
{
181+
strncpy(mDeviceName, deviceName, sizeof(mDeviceName));
182+
};
183+
179184
public:
180185
void setHandleConnected(void (*fptr)())
181186
{

0 commit comments

Comments
 (0)