Skip to content

Commit a61b32e

Browse files
Added event ex send
1 parent ec1edac commit a61b32e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/vscp/common/vscp-client-multicast.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,15 @@ vscpClientMulticast::send(vscpEvent &ev)
558558
int
559559
vscpClientMulticast::send(vscpEventEx &ex)
560560
{
561+
vscpEvent ev;
562+
memset(&ev, 0, sizeof(vscpEvent));
563+
564+
if (!vscp_convertEventExToEvent(&ev, &ex)) {
565+
return VSCP_ERROR_INVALID_FRAME;
566+
}
567+
568+
send(ev);
569+
561570
return VSCP_ERROR_SUCCESS;
562571
}
563572

0 commit comments

Comments
 (0)