[APRS] Removed redundant condition (#810)

pull/818/head
jgromes 2023-08-18 20:21:53 +02:00
rodzic 42c2dba1cc
commit 3e8636b1f2
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

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