   */
   power_all_enable();
   
-  // Turn on the nrf24 radio
-  radio.powerUp();
-  
-
-  // turn on the RF receiver
-  digitalWrite(RF_POWER_PIN, HIGH);
-  
-  // Indicate awake
-  analogWrite(DEBUG_LED_PIN, DEBUG_LED_PWM_AWAKE);
+
   
 } 
 

void goToSleep()
{
  
  // Turn on the nrf24 radio
  radio.powerDown();
  
  // Turn off the RF receiver
  digitalWrite(RF_POWER_PIN, LOW);
  
  // Indicate sleep mode (not pwm as would need to not be totally asleep)
  digitalWrite(DEBUG_LED_PIN, LOW);
 
  cli();
    
  // ensure ADC is off

    // Wait for the serial data to be sent
    Serial.flush();


    // Turn on the nrf24 radio
    radio.powerDown();
    // Allow time for the radio to power down
    delay(100); 
    
    // Turn off the RF receiver
    digitalWrite(RF_POWER_PIN, LOW);
    
    // Turn off message indicator
    analogWrite(DEBUG_LED_PIN, 0);


    // Sleep 'till the next message is due
    goToSleep(); 
    
    
    // Turn on the nrf24 radio
    radio.powerUp();
    
  
    // turn on the RF receiver
    digitalWrite(RF_POWER_PIN, HIGH);
    
    // Indicate awake
    analogWrite(DEBUG_LED_PIN, DEBUG_LED_PWM_AWAKE);

    
  }

}

/**
 * Watchdog for while awake to ensure things are ticking over.
