         }
         //read the contents of the buffer
         byte* bufferReader = buf_start;
-        Serial.print("Size: ");
+        Serial.print("write size: ");
         Serial.println(buf_size);
         while (bufferReader != buf_curr) {
           Serial.print(*bufferReader, HEX);

{
  pinMode(PIN_PAYLOAD, OUTPUT);
  
  //Make sure XBee baud matches hardware config
  XBee.begin(57600);//115200);
  Serial.begin(115200);

  // 9600 NMEA is the default baud rate for Adafruit MTK GPS's- some use 4800

      //buffer size is the difference between the current and start pointers
      buf_size = buf_curr - buf_start;

      Serial1.write(buf_start, buf_size);
       delayMicroseconds(50);
      //arduino is little endian (LSB first)
      
      #ifdef writeDebug
