[RTTY] Use startDirect from PHY

This commit is contained in:
jgromes 2021-02-13 17:43:05 +01:00
parent 8a293cbaab
commit 0c497c39a7

View file

@ -161,15 +161,8 @@ int16_t RTTYClient::begin(float base, uint32_t shift, uint16_t rate, uint8_t enc
// calculate 24-bit frequency
_base = (base * 1000000.0) / _phy->getFreqStep();
// 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);
}
#endif
return(state);
// configure for direct mode
return(_phy->startDirect());
}
void RTTYClient::idle() {