diff --git a/src/digi_utils.cpp b/src/digi_utils.cpp index 3515eeaa..f2c20280 100644 --- a/src/digi_utils.cpp +++ b/src/digi_utils.cpp @@ -63,8 +63,7 @@ namespace DIGI_Utils { if ((packet.substring(0, 3) == "\x3c\xff\x01") && (packet.indexOf("NOGATE") == -1)) { Sender = packet.substring(3, packet.indexOf(">")); if (Sender != Config.callsign) { - String sender = packet.substring(3, packet.indexOf(">")); - STATION_Utils::updateLastHeard(sender); + STATION_Utils::updateLastHeard(Sender); // STATION_Utils::updatePacketBuffer(packet); Utils::typeOfPacket(packet.substring(3), "Digi"); AddresseeAndMessage = packet.substring(packet.indexOf("::") + 2);