Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. ISR(WDT_vect)
  2. {
  3.     sleep_interval++;
  4.     wdt_reset();
  5.     // Re-enable WDT interrupt. Normally we wouldn't do that here,
  6.     // But we're using this routine purely as a timeout;
  7.     // WDT is never used for reset
  8.     WDTCR |= (1<<WDTIE);       
  9.     return;
  10. }