jhanarato / functimer

A Functional Timer (Arduino project)
GNU General Public License v3.0
0 stars 0 forks source link

Timing issue: toggles off-on-on before power turned on. #17

Closed jhanarato closed 8 years ago

jhanarato commented 8 years ago

While testing #16 I uncovered a reproducible bug:

  1. The power is off.
  2. The toggles are set to - off/on/on.
  3. LONG_TIME = 20000, SHORT_TIME = 5000
  4. Power on.
  5. Wait for a while.
  6. Toggle on start-switch.
  7. It should wait 20 seconds.
  8. It beeps immediately.
jhanarato commented 8 years ago

Try the following at step 5:

Using timer on tablet, starting at power on:

Wait 5 sec: Beep at 20 seconds. (probably 25 seconds) Wait 10 sec: Beep at 30 seconds. Wait 15 sec: Beep immediate!

Try again: 5s: Beep at 25 seconds. 10sec: Beep at 30 seconds. 15 sec: Beep immediate.

In a nutshell:

  1. Set the toggles to off-on-on.
  2. LONG_TIME = 20000, SHORT_TIME = 5000
  3. Power on.
  4. Wait for 15 seconds
  5. Toggle on session start.
  6. The timer should wait for another 20 seconds but beeps immediately.
jhanarato commented 8 years ago

With the work on #23 the problem does not occur now.