[AX25] Use startDirect from PHY
This commit is contained in:
parent
4c96b7b7ae
commit
e4e540a390
1 changed files with 2 additions and 11 deletions
|
@ -179,17 +179,8 @@ int16_t AX25Client::begin(const char* srcCallsign, uint8_t srcSSID, uint8_t prea
|
||||||
// save preamble length
|
// save preamble length
|
||||||
_preambleLen = preambleLen;
|
_preambleLen = preambleLen;
|
||||||
|
|
||||||
// set module frequency deviation to 0 if using FSK
|
// configure for direct mode
|
||||||
int16_t state = ERR_NONE;
|
return(_phy->startDirect());
|
||||||
#if !defined(RADIOLIB_EXCLUDE_AFSK)
|
|
||||||
if(_audio == nullptr) {
|
|
||||||
state = _phy->setFrequencyDeviation(0);
|
|
||||||
RADIOLIB_ASSERT(state);
|
|
||||||
|
|
||||||
state = _phy->setEncoding(0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return(state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t AX25Client::transmit(const char* str, const char* destCallsign, uint8_t destSSID) {
|
int16_t AX25Client::transmit(const char* str, const char* destCallsign, uint8_t destSSID) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue