It should not do this. The code has some kind of hysteresis which prevents the play at he output.

What if you increase this hysteresis?

Ioannis