Skip to content

Commit 83243a9

Browse files
committed
Update UDP.cpp
1 parent bc5a9bd commit 83243a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/src/Commands/UDP.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ const __FlashStringHelper * Command_UPD_SendTo(struct EventStruct *event, const
4141
if ((destUnit > 0) && (destUnit < 255))
4242
{
4343
String eventName = tolerantParseStringKeepCase(Line, 3);
44-
if (eventName.indexOf('|') != -1) {
45-
eventName.replace('|', '[');
46-
}
44+
stripEscapeCharacters(eventName);
4745
SendUDPCommand(destUnit, eventName.c_str(), eventName.length());
4846
}
4947
return return_command_success_flashstr();

0 commit comments

Comments
 (0)