   // Send any data received from serial
   if (Serial.available()) {
     // Check FIFO space first
-    if (zeta.bytesAvailableInTxFifo() >= ZetaRFPacketLength) {
+    if (zeta.requestBytesAvailableInTxFifo() >= ZetaRFPacketLength) {
       int s = Serial.readBytes(data, ZetaRFPacketLength);
 
       // Pad with zeros
-      for (int i = s; i < ZetaRFPacketLength; i++) {
+      for (unsigned int i = s; i < ZetaRFPacketLength; i++) {
         data[i] = 0;
       }
 
-      Serial.print("Sending >");
+      Serial.print("TX>");
       Serial.write(data, ZetaRFPacketLength);
-      Serial.print("<\n");
+      Serial.println("<");
 
       // Send buffer
       zeta.sendFixedLengthPacket(4, (const uint8_t*)data);


void loop()
{
  // Read incoming packet and print it
  if (zeta.available()) {
    if (zeta.readPacketTo((uint8_t*)data)) { // Uses packet length set at zeta.beginWithPacketLengthOf(). Buffer must be large enough!
      //zeta.readPacketTo((uint8_t*)data, ZetaRFPacketLength); // Alternative way, but be careful to not read more than the packet length.

      // Print!
      Serial.write(data, ZetaRFPacketLength); Serial.println();
      // Print in HEX
      for (uint8_t i = 0; i < zeta.packetLength(); i++) {
        Serial.print(data[i], HEX);
      }
      Serial.println();
    }
  }


  }

  // Print some info about the chip
  EZRadioReply::PartInfo const& pi = zeta.readPartInformation();
  //old- const Si4455_PartInfo &pi = zeta.readPartInfo();
  Serial.println("----------");
  Serial.print("Chip rev: "); Serial.println(pi.CHIPREV);
