Skip to content

Commit

Permalink
Fix for extra chars when displaying the timer start/stop times
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypoulter committed Jan 30, 2022
1 parent bef6752 commit 0346cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,9 @@ void LcdTask::displayInfoEventTime(const char *name, Scheduler::EventInstance &e
hour = 12;
}

sprintf(temp, "%s %d:%02d %s", name, hour, min, pm ? "PM" : "AM");
sprintf(temp, "%d:%02d %s", hour, min, pm ? "PM" : "AM");
} else {
sprintf(temp, "%s --:--", name);
sprintf(temp, "--:--");
}
displayNameValue(1, name, temp);
}
Expand Down

0 comments on commit 0346cd4

Please sign in to comment.