Update
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user