Skip to content

Commit 4e000f7

Browse files
authored
Merge pull request #5232 from chromoxdor/test_udp_ignore
[SendTo] add ability to nest one SendTo command into another
2 parents 2239412 + 12056d7 commit 4e000f7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/src/Commands/UDP.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const __FlashStringHelper* Command_UPD_SendTo(struct EventStruct *event, const c
4141
if ((destUnit > 0) && (destUnit < 255))
4242
{
4343
String eventName = tolerantParseStringKeepCase(Line, 3);
44+
stripEscapeCharacters(eventName);
4445
SendUDPCommand(destUnit, eventName.c_str(), eventName.length());
4546
}
4647
return return_command_success_flashstr();

src/src/Helpers/StringConverter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ bool GetArgvBeginEnd(const char *string, const unsigned int argc, int& pos_begin
15631563

15641564
if (!parenthesis && (((c == ' ') && (d == ' ')) ||
15651565
((c == separator) && (d == ' ')))) {
1566-
// Consider multiple consequitive spaces as one.
1566+
// Consider multiple consecutive spaces as one.
15671567
}
15681568
else if (!parenthesis && ((d == ' ') && (e == separator))) {
15691569
// Skip the space.

0 commit comments

Comments
 (0)