Merge pull request #5232 from chromoxdor/test_udp_ignore

[SendTo] add ability to nest one SendTo command into another
This commit is contained in:
TD-er
2025-04-29 21:30:25 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -41,6 +41,7 @@ const __FlashStringHelper* Command_UPD_SendTo(struct EventStruct *event, const c
if ((destUnit > 0) && (destUnit < 255))
{
String eventName = tolerantParseStringKeepCase(Line, 3);
stripEscapeCharacters(eventName);
SendUDPCommand(destUnit, eventName.c_str(), eventName.length());
}
return return_command_success_flashstr();
+1 -1
View File
@@ -1563,7 +1563,7 @@ bool GetArgvBeginEnd(const char *string, const unsigned int argc, int& pos_begin
if (!parenthesis && (((c == ' ') && (d == ' ')) ||
((c == separator) && (d == ' ')))) {
// Consider multiple consequitive spaces as one.
// Consider multiple consecutive spaces as one.
}
else if (!parenthesis && ((d == ' ') && (e == separator))) {
// Skip the space.