From e4e540a39098e48e10de3822e74d621214458c4f Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 13 Feb 2021 17:42:42 +0100 Subject: [PATCH] [AX25] Use startDirect from PHY --- src/protocols/AX25/AX25.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/protocols/AX25/AX25.cpp b/src/protocols/AX25/AX25.cpp index 5397a2d1..55cf1310 100644 --- a/src/protocols/AX25/AX25.cpp +++ b/src/protocols/AX25/AX25.cpp @@ -179,17 +179,8 @@ int16_t AX25Client::begin(const char* srcCallsign, uint8_t srcSSID, uint8_t prea // save preamble length _preambleLen = preambleLen; - // set module frequency deviation to 0 if using FSK - int16_t state = ERR_NONE; - #if !defined(RADIOLIB_EXCLUDE_AFSK) - if(_audio == nullptr) { - state = _phy->setFrequencyDeviation(0); - RADIOLIB_ASSERT(state); - - state = _phy->setEncoding(0); - } - #endif - return(state); + // configure for direct mode + return(_phy->startDirect()); } int16_t AX25Client::transmit(const char* str, const char* destCallsign, uint8_t destSSID) {