 }
  *
  */
-#include <Arduino.h>
 #include "Sodaq_UBlox_GPS.h"
 #include <rn2xx3.h>
 
-//create an instance of the rn2xx3 library,
-//giving Serial1 as stream to use for communication with the radio
+// Create an instance of the rn2xx3 library,
+// Giving Serial1 as stream to use for communication with the radio
 rn2xx3 myLora(Serial1);
 
 String toLog;


    initialize_radio();

    //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
    sodaq_gps.init(GPS_ENABLE);

    // Set the datarate/spreading factor at which we communicate.

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

  // Turn off GREEN and turn on RED led to indicate GPS usage
  digitalWrite(LED_GREEN, HIGH);
  digitalWrite(LED_RED, LOW);

  // Scan until we have a succesful GPS fix
  while(!sodaq_gps.scan(true))
  {
    SerialUSB.println("No GPS fix, doing another scan");
  }

  digitalWrite(LED_RED, HIGH);

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