Closed jhanarato closed 8 years ago
I have rewritten the Timer implementation, using an enum type instead of having two booleans hold state. I then discovered that I was checking equality rather than making an assignment (== versus =) in Timer::update()
. There is not much else that could go wrong here, so time for more tests.
Ok, a very basic timer test:
Above test works fine. Same again, with switches at off-on-on. Should beep at 20 seconds.
Success!
Looks like everything works, with issue #24 the only remaining problem.
I'm now working on the session timing code. I have a new branch (fix_timing) and have stripped the sketch ino file down to the following:
A first run of this code yields a beep at 45 seconds.