Bug2

Bugs found

  1. file main.cc: Interrupt vector 1 is used at the program but is not declared as an interrupt handler at extern "C" block
  2. file main.cc: statement at line 17 enables the Watchdog Timer to reset every 47.0 ms (at Vcc = 3.0V) or 15.0 ms (at Vcc = 5.0V). There should be a instruction that "kick" the watchdog timer before it resets or there should be no instruction setting it.
  3. file main.cc: the while loop at line 20 is closed after the return. Those guys don't learn that it should be closed before the return in the previous exercise?
  4. file main.cc: The Timer/Counter1 Overflow Interrupt is enabled at line 16 but it's not handled, probalby because the programmer assumed that the Timer1 Overflow Vector is 5 but the correct one is 6. RTFM!