This commit is contained in:
Carsten Graf
2025-09-18 23:21:14 +02:00
parent 4f0fc68d41
commit 02a60d84cf
7 changed files with 123 additions and 101 deletions

View File

@@ -2,8 +2,8 @@
#include <Arduino.h>
#include <Preferences.h>
#include <master.h>
#include <licenceing.h>
#include <master.h>
// Persist and load button configuration
void saveButtonConfig() {
@@ -43,8 +43,8 @@ void saveSettings() {
preferences.putULong("maxTimeDisplay", maxTimeDisplay);
preferences.putUInt("gamemode", gamemode);
preferences.putUInt("laneConfigType", laneConfigType);
preferences.putUInt("lane1DifficultyType", lane1DifficultyType);
preferences.putUInt("lane2DifficultyType", lane2DifficultyType);
preferences.putUInt("lane1Diff", lane1DifficultyType);
preferences.putUInt("lane2Diff", lane2DifficultyType);
preferences.end();
}
@@ -54,8 +54,8 @@ void loadSettings() {
maxTimeDisplay = preferences.getULong("maxTimeDisplay", 20000);
gamemode = preferences.getUInt("gamemode", 0);
laneConfigType = preferences.getUInt("laneConfigType", 0);
lane1DifficultyType = preferences.getUInt("lane1DifficultyType", 0);
lane2DifficultyType = preferences.getUInt("lane2DifficultyType", 0);
lane1DifficultyType = preferences.getUInt("lane1Diff", 0);
lane2DifficultyType = preferences.getUInt("lane2Diff", 0);
preferences.end();
}