Skip to content

Commit a11dff7

Browse files
authored
blinker bugfix 2
1 parent c588b74 commit a11dff7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

AlphaBeat_Midi_Control/AlphaBeat_Midi_Control.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ void dispAction(){
324324
}
325325
if(dispMode == modeSelect){
326326
updateDisplay(1," . . "); //hide display after 10 Min inactivity
327-
eom[1]==false;
327+
eom[1]=false;
328328
}
329329
}
330330
if(dispCounter[0] >= 75 && dispMode == modeSelect){
331331
updateDisplay(0," . . "); //hide display after 10 Min inactivity
332-
eom[0]==false;
332+
eom[0]=false;
333333
}
334334
//avoid overflow
335335
if(dispCounter[0] > 250){
@@ -408,6 +408,9 @@ void updateDisplay(byte displayNr, char* str) {
408408
}
409409

410410
void DoBlink(){
411+
if(blinker==false && eom[0]==false && eom[1]==false){
412+
blinkTimer.stop();
413+
}
411414
for (byte x=0; x<2; x++) {
412415
if(eom[x] == true) {
413416
if(blinker == true){ //pulse display (do not turn off display)
@@ -417,8 +420,5 @@ void DoBlink(){
417420
}
418421
}
419422
}
420-
if(eom[0]==false && eom[1]==false){
421-
blinkTimer.stop();
422-
}
423423
blinker = !blinker;
424424
}

0 commit comments

Comments
 (0)