[Morse] Use startDirect from PHY

This commit is contained in:
jgromes 2021-02-13 17:42:55 +01:00
parent 98970be860
commit 8a293cbaab

View file

@ -23,15 +23,8 @@ int16_t MorseClient::begin(float base, uint8_t speed) {
// calculate dot length (assumes PARIS as typical word) // calculate dot length (assumes PARIS as typical word)
_dotLength = 1200 / speed; _dotLength = 1200 / speed;
// 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);
} }
size_t MorseClient::startSignal() { size_t MorseClient::startSignal() {