 {
    if(!gotPacket) {
       gotPacket = true ;
-      memcpy(&incomingPacket,msg,sizeof(AX25Msg));
+      memcpy(&incomingPacket, msg, sizeof(AX25Msg));
       if (freeMemory() > msg->len) {
          packetData = (uint8_t*) malloc(msg->len);
          memcpy(packetData,msg->info,msg->len);

{
   Serial.begin(9600) ;

   APRS_init(ADC_REFERENCE,OPEN_SQUELCH);
   APRS_setCallsign(CALLSIGN,SSID);
   APRS_printSettings();

   pinMode(BUTTON_SENDLOC_PIN,INPUT_PULLUP);

   Serial.println(F("APRS Beacon Start")) ;
   Serial.print(F("Version: ")) ;
   Serial.println(Version) ;
   Serial.print(F("Callsign ")) ;
   Serial.print(CALLSIGN) ;
   Serial.print(F(" SSID: ")) ;

   APRS_setDirectivity(dir);

   char *comment = "LibAPRS location update" ;
   APRS_sendLoc(comment, strlen(comment));
}


