kopia lustrzana https://github.com/jgromes/RadioLib
[APRS] Removed redundant condition (#810)
rodzic
42c2dba1cc
commit
3e8636b1f2
|
@ -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;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue