Align platform label and display server time in clock box
This commit is contained in:
parent
6e53521b84
commit
dc4180320b
@ -61,10 +61,10 @@ struct Timetable {
|
||||
|
||||
// Selectable timetables
|
||||
Timetable timetables[] = {
|
||||
{"Johanneskirche, Bstg. 1", "/departures?stop_id=de:08311:30104&platform=1"},
|
||||
{"Johanneskirche, Bstg. 2", "/departures?stop_id=de:08311:30104&platform=2"},
|
||||
{"Blumenthalstr., Bstg. A", "/departures?stop_id=de:08221:1225&platform=A"},
|
||||
{"Blumenthalstr., Bstg. B", "/departures?stop_id=de:08221:1225&platform=B"}
|
||||
{"Johanneskirche Bstg. 1", "/departures?stop_id=de:08311:30104&platform=1"},
|
||||
{"Johanneskirche Bstg. 2", "/departures?stop_id=de:08311:30104&platform=2"},
|
||||
{"Blumenthalstr Bstg. A", "/departures?stop_id=de:08221:1225&platform=A"},
|
||||
{"Blumenthalstr Bstg. B", "/departures?stop_id=de:08221:1225&platform=B"}
|
||||
};
|
||||
size_t selectedTimetable = 0;
|
||||
|
||||
@ -233,7 +233,6 @@ void StateShowingDepartures::enter() {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
char symbol[3] = {0};
|
||||
char direction[16] = {0};
|
||||
|
||||
@ -252,6 +251,10 @@ void StateShowingDepartures::enter() {
|
||||
|
||||
line++;
|
||||
}
|
||||
|
||||
clearClock();
|
||||
display.setCursor(CLOCK_X, CLOCK_Y);
|
||||
display.printf("%5s", departures["serverTime"].as<const char *>());
|
||||
}
|
||||
|
||||
void StateShowingDepartures::tick() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user