     c = Serial1.read();
     if ( !sentenceRdy ) {
       if ( c == 36 ) { //36 is '$', start of GPS statement - KN
-        sentenceBufIndex = 0;
+        sentenceIndex = 0;
         sentencePending = true;
       }
       if ( sentencePending && c == 10 ) { //10 is new line - KN
         sentenceRdy = true;
         sentencePending = false;
       }
-      sentenceBuf[sentenceBufIndex] = c;
-      sentenceBufIndex++;
-      sentenceBuf[sentenceBufIndex] = 0;
+      sentence[sentenceIndex] = c;
+      sentenceIndex++;
+      sentence[sentenceIndex] = 0;
     }
   }
 }

  setSyncProvider( getTeensy3Time );
  sentencePending = false;
  sentenceRdy = false;
  sentenceBuf[0] = 0;
  sentenceBufIndex = 0;
  txTimer.begin(transmit, 10000);
  pinMode(5,INPUT_PULLUP);
  while( !Serial1 );

  //print out sentence, all of it - KN
  int i = 0;
  
  if ( sentenceBufRdy ) {
    while( sentenceBuf[i+1] != 0 ) {
        Serial2.write( sentenceBuf[i] );
        Serial1.write( sentenceBuf[i] );//for logging
