remove of choixModeJeu and choixDifficulty in web mod update oled web menu

This commit is contained in:
UNIV-LYON1\p2405212
2025-06-16 17:05:42 +02:00
parent 15f5d46b55
commit de0afba0bf
3 changed files with 12 additions and 10 deletions
+4 -4
View File
@@ -23,7 +23,7 @@ Adafruit_SH1107 display = Adafruit_SH1107(64, 128, &Wire);
unsigned long lastDebounceTimeA = 0;
unsigned long lastDebounceTimeB = 0;
const unsigned long debounceDelay = 200; // délai de rebond (200 ms)
const unsigned long debounceDelay = 200;
void setupMenu() {
pinMode(BUTTON_A, INPUT_PULLUP);
@@ -88,12 +88,12 @@ void choixDifficulty() {
void menu() {
if (!isMod) {
choixMode();
} else if (!isModJeu) {
} else if (local && !isModJeu) {
choixModeJeu();
} else if (solo && !isDifficulty) {
} else if (local && solo && !isDifficulty) {
choixDifficulty();
} else {
isPlay = true; // mode duo sans choix difficulté
isPlay = true;
}
}