 
     initialize_radio();
 
-    //transmit a startup message
+    // Transmit a startup message
     myLora.tx("TTN Mapper on Sodaq One");
 
     // Enable next line to enable debug information of the sodaq_gps
     //sodaq_gps.setDiag(SerialUSB);
 
-    // initialize GPS
+    // Initialize GPS
     sodaq_gps.init(GPS_ENABLE);
 
     // Set the datarate/spreading factor at which we communicate.

{
  SerialUSB.println("Waiting for GPS fix");

  digitalWrite(LED_GREEN, LOW);
  // Keep the GPS enabled after we do a scan, increases accuracy
  sodaq_gps.scan(true);
  digitalWrite(LED_GREEN, HIGH);

  // if the latitude is 0, we likely do not have a GPS fix yet, so wait longer
  while(sodaq_gps.getLat()==0.0)
  {
    SerialUSB.println("Latitude still 0.0, doing another scan");

    digitalWrite(LED_RED, LOW);
    // Keep the GPS enabled after we do a scan, increases accuracy
    sodaq_gps.scan(true);
    digitalWrite(LED_RED, HIGH);
  }

  LatitudeBinary = ((sodaq_gps.getLat() + 90) / 180) * 16777215;
  LongitudeBinary = ((sodaq_gps.getLon() + 180) / 360) * 16777215;

    SerialUSB.begin(57600);
    Serial1.begin(57600);

    // Make sure usb serial connection is available,
    // or after 10s go on anyway for 'headless' use of the node.
    while ((!SerialUSB) && (millis() < 10000));

