[SSTV] Use startDirect from PHY
This commit is contained in:
parent
0c497c39a7
commit
0a44fa065d
1 changed files with 2 additions and 9 deletions
|
@ -192,15 +192,8 @@ int16_t SSTVClient::begin(float base, const SSTVMode_t& mode, float correction)
|
|||
// 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 SSTVClient::idle() {
|
||||
|
|
Loading…
Add table
Reference in a new issue