[APRS] Removed redundant condition (#810)
This commit is contained in:
parent
42c2dba1cc
commit
3e8636b1f2
1 changed files with 1 additions and 4 deletions
|
@ -24,13 +24,10 @@ int16_t APRSClient::begin(char sym, char* callsign, uint8_t ssid, bool alt) {
|
||||||
table = '/';
|
table = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this->phyLayer != nullptr) {
|
|
||||||
return(RADIOLIB_ERR_INVALID_CALLSIGN);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(strlen(callsign) > RADIOLIB_AX25_MAX_CALLSIGN_LEN) {
|
if(strlen(callsign) > RADIOLIB_AX25_MAX_CALLSIGN_LEN) {
|
||||||
return(RADIOLIB_ERR_INVALID_CALLSIGN);
|
return(RADIOLIB_ERR_INVALID_CALLSIGN);
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(this->src, callsign, strlen(callsign));
|
memcpy(this->src, callsign, strlen(callsign));
|
||||||
this->id = ssid;
|
this->id = ssid;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue