if(digitalRead(encoder0Btn) == LOW){ start = true; if(finished == true){ calculateTime(counter); start = false; finished = false;
} }
the finished is set to true further down in the loop. The statement works, that is start = false only if I take out the line finished = false;
finished = false seems to be the problem.
Im not sure, maybe it's my bad syntax?