Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First firmware upload fix and clockfaces new line char fix #84

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions EleksTubeHAX_pio/src/TFTs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void TFTs::loadClockFacesNames() {
}
while(f.available() && i<9) {
patterns_str[i] = f.readStringUntil('\n');
patterns_str[i].replace(String(char(13)), "");
Serial.println(patterns_str[i]);
i++;
}
Expand Down
4 changes: 4 additions & 0 deletions EleksTubeHAX_pio/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ void setup() {
uclock.setActiveGraphicIdx(tfts.NumberOfClockFaces);
Serial.println("Last selected index of clock face is larger than currently available number of image sets.");
}
if (uclock.getActiveGraphicIdx() < 1) {
uclock.setActiveGraphicIdx(1);
Serial.println("Last selected index of clock face is less than 1.");
}
tfts.current_graphic = uclock.getActiveGraphicIdx();

tfts.println("Done with setup.");
Expand Down