is set in an ISR and used in the loop().
It should be declared additionally as volatile.
I discovered this while debugging the sketch on an ATtiny1614. I'm guessing, that in this case, the compiler has done some aggressive optimisation and kept the value in a register in the loop() code so it always behaves as if the value is false.
DCF77_Scope.ino (bug)
The variable declared here:
boolean samples_pending = false;
is set in an ISR and used in the loop(). It should be declared additionally as volatile.
I discovered this while debugging the sketch on an ATtiny1614. I'm guessing, that in this case, the compiler has done some aggressive optimisation and kept the value in a register in the loop() code so it always behaves as if the value is false.