     if (acked) { 
       return; 
     }      // Return if ACK received
-
-    Sleepy::loseSomeTime(RETRY_PERIOD * 1000);     // If no ack received wait and try again
+    sleep(30);
   }
 #else
   rf12_sleep(-1);              // Wake up RF module

/*
                 +-\/-+
           VCC  1|    |14  GND
      (D0) PB0  2|    |13  AREF (D10)
      (D1) PB1  3|    |12  PA1 (D9)
         RESET  4|    |11  PA2 (D8)
 INT0 (D2) PB2  5|    |10  PA3 (D7)
  PWM (D3) PA7  6|    |9   PA4 (D6)
  PWM (D4) PA6  7|    |8   PA5 (D5) PWM
                 +----+
*/

#include <stdlib.h>
#include <util/delay.h>
#include <JeeLib.h> // https://github.com/jcw/jeelib

ISR(WDT_vect) { 
  Sleepy::watchdogEvent(); 
} // interrupt handler for JeeLabs Sleepy power saving

#define myNodeID 8     // RF12 node ID in the range 1-30
#define network 210      // RF12 Network group

#endif

  rfwrite(); // Send data via RF 
}

//--------------------------------------------------------------------------------------------------
// Sleep Configuration 
//-------------------------------------------------------------------------------------------------
// 0=16ms, 1=32ms,2=64ms,3=128ms,4=250ms,5=500ms
// 6=1 sec,7=2 sec, 8=4 sec, 9= 8sec
void setup_watchdog(int sleepMode) {

  byte sleepByte;
  if (sleepMode > 9 ) sleepMode=9;
  sleepByte = sleepMode & 7;
  if (sleepMode > 7) sleepByte |= (1<<5);
  sleepByte |= (1<<WDCE);

  MCUSR &= ~(1 << WDRF);                           // reset status flag
  WDTCSR |= (1 << WDCE) | (1 << WDE);              // enable configuration changes
  WDTCSR = sleepByte;
  WDTCSR |= (1 << WDIE);                           // enable interrupt mode

}

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++;
}



// Wait a few milliseconds for proper ACK
#ifdef USE_ACK
