Update Radiolib version to 7.1.0

This commit is contained in:
lewisxhe
2024-12-20 10:30:28 +08:00
parent ec34aea9f7
commit 7f7f0022fe
185 changed files with 5193 additions and 2116 deletions
+18
View File
@@ -260,6 +260,12 @@ int16_t APRSClient::sendFrame(char* destCallsign, uint8_t destSSID, char* info)
RADIOLIB_AX25_CONTROL_UNNUMBERED_FRAME,
RADIOLIB_AX25_PID_NO_LAYER_3, const_cast<char*>(info));
// optionally set repeaters
if(this->repCalls && this->repSSIDs && this->numReps) {
int16_t state = frameUI.setRepeaters(this->repCalls, this->repSSIDs, this->numReps);
RADIOLIB_ASSERT(state);
}
return(axClient->sendFrame(&frameUI));
} else if(this->phyLayer != nullptr) {
@@ -276,4 +282,16 @@ int16_t APRSClient::sendFrame(char* destCallsign, uint8_t destSSID, char* info)
return(RADIOLIB_ERR_WRONG_MODEM);
}
void APRSClient::useRepeaters(char** repeaterCallsigns, uint8_t* repeaterSSIDs, uint8_t numRepeaters) {
this->repCalls = repeaterCallsigns;
this->repSSIDs = repeaterSSIDs;
this->numReps = numRepeaters;
}
void APRSClient::dropRepeaters() {
this->repCalls = NULL;
this->repSSIDs = NULL;
this->numReps = 0;
}
#endif