 
   // setup the selected polling interval
   if (!sendCommand( pollingIntervalCmds[inPolling]) ) return 2;
-  //  if (!sendCommand( pollingIntervalCmds[selectedPollingInterval]) ) return 2;
+
   if (!sendCommand("ATSM3")) return 3;
   if (!sendCommand("ATDN")) return 4;
   return 5; // success
 }
+
 // end of SRF sleep code
 
 // Start of SRF command functions
+
+/** enterCommandMode - Enter command mode on the SRF radio module. From here
+ * AT commands can be sent to reconfigure it.
+ * @return status to indicate if the SRF is in command mode now
+ */
 uint8_t enterCommandMode()
 {
   delay(1200);

#include <OneWire.h>
#include <DallasTemperature.h>

// Used in START msg to indicate firmware version, 314 = 3.1.4
#define VERSION_ID 314

// Set RFu hardware pins (not board jumpers)
// Enable SRF


  return true; 
}


// End of ultrasonic sensor code
// **************************************

// Battery monitoring

/** readVcc - Read the current battery voltage
 * @return Vcc in millivolts
 */
int readVcc() {
  // Read 1.1V reference against AVcc
  // set the reference to Vcc and the measurement to the internal 1.1V reference
#if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
//  ADMUX = _BV(REFS0) | _BV(MUX4) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);
#elif defined (__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
//  ADMUX = _BV(MUX5) | _BV(MUX0);
#elif defined (__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
//  ADMUX = _BV(MUX3) | _BV(MUX2);
#else
  ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);
#endif  
