[APRS] Removed redundant condition (#810)

This commit is contained in:
jgromes 2023-08-18 20:21:53 +02:00
parent 42c2dba1cc
commit 3e8636b1f2

View file

@ -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;