Skip to content

Commit

Permalink
[issue letscontrolit#968] Use template parser for OLED commands (lets…
Browse files Browse the repository at this point in the history
…controlit#974)

N.B. Now even task values can be used in commands, next to special characters.
  • Loading branch information
TD-er authored and psy0rz committed Feb 27, 2018
1 parent d2c7743 commit a938bc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_P023_OLED.ino
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ boolean Plugin_023(byte function, struct EventStruct *event, String& string)
success = true;
argIndex = string.lastIndexOf(',');
tmpString = string.substring(argIndex + 1);
Plugin_023_sendStrXY(tmpString.c_str(), event->Par1 - 1, event->Par2 - 1);
String newString = P023_parseTemplate(tmpString, 16);
Plugin_023_sendStrXY(newString.c_str(), event->Par1 - 1, event->Par2 - 1);
}
if (tmpString.equalsIgnoreCase(F("OLEDCMD")))
{
Expand Down

0 comments on commit a938bc7

Please sign in to comment.