diff --git a/data/firmware.bin b/data/firmware.bin
index 1c22703..624ab84 100644
Binary files a/data/firmware.bin and b/data/firmware.bin differ
diff --git a/data/index.html b/data/index.html
index d9577d3..f029353 100644
--- a/data/index.html
+++ b/data/index.html
@@ -15,7 +15,8 @@
⚠️ Niedrige Batterie erkannt!
- Deine Geräte mit niedriger Batterie:
+ Deine Geräte mit niedriger Batterie:
+
@@ -47,9 +48,7 @@
📚 Lernmodus aktiv
-
- Drücke jetzt den Button für:
-
+
Drücke jetzt den Button für:
@@ -193,24 +192,18 @@
}
// Namen-Handling
- if (
- (data.firstname == "" || data.lastname == "") &&
- data.lane == "start1"
- ) {
+ if ((data.name == "" || !data.name) && data.lane == "start1") {
name1 = "";
}
- if (
- (data.firstname == "" || data.lastname == "") &&
- data.lane == "start2"
- ) {
+ if ((data.name == "" || !data.name) && data.lane == "start2") {
name2 = "";
}
- if (data.firstname && data.lastname && data.lane) {
+ if (data.name && data.lane) {
if (data.lane === "start1") {
- name1 = `${data.firstname} ${data.lastname}`;
+ name1 = data.name;
} else if (data.lane === "start2") {
- name2 = `${data.firstname} ${data.lastname}`;
+ name2 = data.name;
}
updateDisplay();
}
@@ -482,14 +475,17 @@
updateLaneDisplay();
})
.catch((error) =>
- console.error("Fehler beim Laden der Lane-Schwierigkeits-Konfiguration:", error)
+ console.error(
+ "Fehler beim Laden der Lane-Schwierigkeits-Konfiguration:",
+ error
+ )
);
}
function updateLaneDisplay() {
- const lane1Title = document.querySelector('.lane h2');
- const lane2Title = document.querySelectorAll('.lane h2')[1];
-
+ const lane1Title = document.querySelector(".lane h2");
+ const lane2Title = document.querySelectorAll(".lane h2")[1];
+
if (laneConfigType === 0) {
// Identische Lanes
lane1Title.textContent = "🏊♀️ Bahn 1";
@@ -498,9 +494,11 @@
// Unterschiedliche Lanes
const lane1Icon = lane1DifficultyType === 0 ? "🟢" : "🔴";
const lane2Icon = lane2DifficultyType === 0 ? "🟢" : "🔴";
- const lane1Difficulty = lane1DifficultyType === 0 ? "Leicht" : "Schwer";
- const lane2Difficulty = lane2DifficultyType === 0 ? "Leicht" : "Schwer";
-
+ const lane1Difficulty =
+ lane1DifficultyType === 0 ? "Leicht" : "Schwer";
+ const lane2Difficulty =
+ lane2DifficultyType === 0 ? "Leicht" : "Schwer";
+
lane1Title.textContent = `${lane1Icon} Bahn 1 (${lane1Difficulty})`;
lane2Title.textContent = `${lane2Icon} Bahn 2 (${lane2Difficulty})`;
}
diff --git a/data/rfid.html b/data/rfid.html
index 31b65ca..75b78d6 100644
--- a/data/rfid.html
+++ b/data/rfid.html
@@ -62,7 +62,7 @@
type="button"
id="readUidBtn"
class="read-uid-btn"
- onclick="readRFIDUID()"
+ onclick="toggleRFIDReading()"
>
📡 Read Chip
@@ -70,47 +70,16 @@
-
+
-
-
-
-
-
-
-