 #endif
   Serial.begin(9600);
   if (rfm12b.begin(rfm12bCs, rfm12bIrqPin, rfm12bIrqNum, 1, RF12_433MHZ)) {
-    // RFM12B exists, add any other RFM12B setup code here
-    ;
+    radioPtr = &rfm12b;
+    Serial.println("Found RFM12B");
   }
   else {
-    // No RFM12B, must use XRF
-    radio = Serial;
+    Serial.println("RFM12B not found");
+    Serial1.begin(9600);
+    radioPtr = &Serial1;
   }
 }
 


  if (txTimer.isExpired()) {
    // Send message every second
    radio.print("Send a message");
    txTimer.start(1000, AsyncDelay::MILLIS);
  }


/*
 * Example sketch to demonstrate the concept of how a single firmware
 * image can support the RFM12B and Ciseco XRF (or XBee) modules,
 * autoselecting between them depending on the hardware fitted. This
 * example assumes that the XRF is connected to Serial1, leaving
 * Serial free for debugging information.
 *
 */


