          // update gps led
 
          digitalWrite(LED_GPS,gps.location.isValid()) ;
-
-     } 
-
-}
+    }
+}

           // if its time, send out the location
           if ( (millis() - lastupdate) > update_beacon ) {
              lastupdate = millis() ;
              mylog.send(F("sending loc"));
              locationUpdate(lat,lon,alt,0,1,0,0) ;
              sent_count++ ;
              lastpositionsent = true ;
              forcedisplay = true ; 

          }
       }
   }

    bklightstate = backlight(bklightstate) ;
#endif

    // update the display
    unsigned long t = millis();
    if ((forcedisplay > 0 && forcedisplay + 3000 < t && forcedisplay + 3000 > lastupdatedisplay) || (t - lastupdatedisplay) > UPDATE_DISPLAY) {
        lastupdatedisplay = t;
        forcedisplay = 0;

         sprintf(buf,"s:%d r:%d",sent_count,recv_count) ;
         mylog.send(buf) ;
