Skip to content

Commit 17f5453

Browse files
committed
Fixing duplicated buttons loop
1 parent 558d3af commit 17f5453

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

FlappyLED.ino

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define BUZZER //Modulino Buzzer needed: play sounds while playing
3333
#define ANIMATIONS //Enable Animations
3434
#define RESET_TIME //Automatically reset after some time
35-
#define BLE_SYNC 1 //Enable BLE Sync
35+
#define BLE_SYNC //Enable BLE Sync
3636

3737
/* Game Modes */
3838
/* It is the state of the game*/
@@ -95,7 +95,7 @@ void setup() {
9595

9696
#ifdef BUTTONS
9797
buttons.begin();
98-
buttons.setLeds(false, false, false);
98+
buttons.setLeds(false, mute, false);
9999
Scheduler.startLoop(menuLoop);
100100
#endif
101101

@@ -122,12 +122,6 @@ void setup() {
122122
}
123123
#endif
124124

125-
#ifdef BUTTONS
126-
buttons.begin();
127-
buttons.setLeds(false, mute, false);
128-
Scheduler.startLoop(menuLoop);
129-
#endif
130-
131125
#if !defined(TOF_MODE) && !defined(ENCODER_MODE)
132126
game_ongoing = true;
133127
gameMode = 127; //dummy value

0 commit comments

Comments
 (0)