[Morse] Use startDirect from PHY
This commit is contained in:
parent
98970be860
commit
8a293cbaab
1 changed files with 2 additions and 9 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue