kopia lustrzana https://github.com/jgromes/RadioLib
[RTTY] Use startDirect from PHY
rodzic
8a293cbaab
commit
0c497c39a7
|
@ -161,15 +161,8 @@ int16_t RTTYClient::begin(float base, uint32_t shift, uint16_t rate, uint8_t enc
|
||||||
// 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 RTTYClient::idle() {
|
void RTTYClient::idle() {
|
||||||
|
|
Ładowanie…
Reference in New Issue