Change best times to Local leaderboard

This commit is contained in:
Carsten Graf
2025-09-22 20:51:09 +02:00
parent 36c35ba161
commit 8fac847a75
2 changed files with 52 additions and 7 deletions

View File

@@ -482,6 +482,9 @@ void addLocalTime(String uid, String name, unsigned long timeMs) {
localTimes.push_back(newTime);
// Speichere das Leaderboard automatisch
saveBestTimes();
Serial.printf("Lokale Zeit hinzugefügt: %s (%s) - %.2fs\n", name.c_str(),
uid.c_str(), timeMs / 1000.0);
}
@@ -489,5 +492,6 @@ void addLocalTime(String uid, String name, unsigned long timeMs) {
// Leert das lokale Leaderboard
void clearLocalLeaderboard() {
localTimes.clear();
saveBestTimes(); // Speichere das geleerte Leaderboard
Serial.println("Lokales Leaderboard geleert");
}