Skip to content

Commit

Permalink
[P023] Minor performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
tonhuisman committed Oct 17, 2023
1 parent 5eaae9a commit dd56de1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/src/PluginStructs/P023_data_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ void P023_data_struct::StartUp_OLED(struct EventStruct *event) {

bool P023_data_struct::plugin_read(struct EventStruct *event) {
for (uint8_t x = 0; x < 8; x++) {
String tmp = strings[x];
const String newString = parseTemplate(tmp, 16);

if (strings[x].length()) {
String tmp = strings[x];
const String newString = parseTemplate(tmp, 16);

sendStrXY(newString.c_str(), x, 0);
currentLines[x] = newString;
}
Expand Down

0 comments on commit dd56de1

Please sign in to comment.