[SSTV] Use startDirect from PHY

This commit is contained in:
jgromes 2021-02-13 17:43:10 +01:00
parent 0c497c39a7
commit 0a44fa065d

View file

@ -192,15 +192,8 @@ int16_t SSTVClient::begin(float base, const SSTVMode_t& mode, float correction)
// calculate 24-bit frequency // calculate 24-bit frequency
_base = (base * 1000000.0) / _phy->getFreqStep(); _base = (base * 1000000.0) / _phy->getFreqStep();
// 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);
}
#endif
return(state);
} }
void SSTVClient::idle() { void SSTVClient::idle() {