   sinit();
 #endif
 
-  rf12_initialize(myNodeID,freq,network); // Initialize RFM12 with settings defined above 
-  rf12_sleep(0);                          // Put the RFM12 to sleep
-  PRR = bit(PRTIM1); // only keep timer 0 going
+  rf12_initialize(myNodeID,freq,network);  // Initialize RFM12 with settings defined above 
+  rf12_sleep(0);                           // Put the RFM12 to sleep
+  PRR = bit(PRTIM1);                       // only keep timer 0 going
   ADCSRA &= ~ bit(ADEN); 
-  bitSet(PRR, PRADC); // Disable the ADC to save power
-  setup_watchdog(7);
+  bitSet(PRR, PRADC);                      // Disable the ADC to save power
+  setup_watchdog(6);
 
 }
 


void sleep(uint8_t sleepTime) {

  while(watchdog_counter++ < sleepTime) {
    set_sleep_mode(SLEEP_MODE_PWR_DOWN);             // select the watchdog timer mode
    sleep_enable();                                  // enable the sleep mode ready for use
    sleep_mode();                                    // trigger the sleep
    sleep_disable();                                 // prevent further sleeps 
  }
  watchdog_counter = 0;

}

ISR(WDT_vect) {
  watchdog_counter++;
}



#endif
// Serial Functions End

//--------------------------------------------------------------------------------------------------
// Free Available Memory Function
//--------------------------------------------------------------------------------------------------
int freeMemory() {
  extern int __heap_start, *__brkval; 
  int v; 
  return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval); 
}






