From 3e8636b1f2002b3d9f129482f0d6ad49220129e0 Mon Sep 17 00:00:00 2001 From: jgromes Date: Fri, 18 Aug 2023 20:21:53 +0200 Subject: [PATCH] [APRS] Removed redundant condition (#810) --- src/protocols/APRS/APRS.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/protocols/APRS/APRS.cpp b/src/protocols/APRS/APRS.cpp index 33559e79..780dddf4 100644 --- a/src/protocols/APRS/APRS.cpp +++ b/src/protocols/APRS/APRS.cpp @@ -24,13 +24,10 @@ int16_t APRSClient::begin(char sym, char* callsign, uint8_t ssid, bool alt) { table = '/'; } - if(this->phyLayer != nullptr) { - return(RADIOLIB_ERR_INVALID_CALLSIGN); - } - if(strlen(callsign) > RADIOLIB_AX25_MAX_CALLSIGN_LEN) { return(RADIOLIB_ERR_INVALID_CALLSIGN); } + memcpy(this->src, callsign, strlen(callsign)); this->id = ssid;