Skip to content

Commit d2d6445

Browse files
authored
Merge pull request #308 from OpenEVSE/jeremypoulter/issue305
Fixes for extra chars when displaying the timer start/stop times
2 parents 0becd03 + 1bb442d commit d2d6445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lcd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,9 @@ void LcdTask::displayInfoEventTime(const char *name, Scheduler::EventInstance &e
665665
hour = 12;
666666
}
667667

668-
sprintf(temp, "%s %d:%02d %s", name, hour, min, pm ? "PM" : "AM");
668+
sprintf(temp, "%d:%02d %s", hour, min, pm ? "PM" : "AM");
669669
} else {
670-
sprintf(temp, "%s --:--", name);
670+
sprintf(temp, "--:--");
671671
}
672672
displayNameValue(1, name, temp);
673673
}

0 commit comments

Comments
 (0)