Skip to content

Commit bc5a9bd

Browse files
committed
add cheatcode, fix one typo
1 parent 6f86e12 commit bc5a9bd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/src/Commands/UDP.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ 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+
}
4447
SendUDPCommand(destUnit, eventName.c_str(), eventName.length());
4548
}
4649
return return_command_success_flashstr();

src/src/Helpers/StringConverter.cpp

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

15691569
if (!parenthesis && (((c == ' ') && (d == ' ')) ||
15701570
((c == separator) && (d == ' ')))) {
1571-
// Consider multiple consequitive spaces as one.
1571+
// Consider multiple consecutive spaces as one.
15721572
}
15731573
else if (!parenthesis && ((d == ' ') && (e == separator))) {
15741574
// Skip the space.

0 commit comments

Comments
 (0)