[PHY] Disable shaping in startDirect
This commit is contained in:
parent
0a44fa065d
commit
7ecd56d2ca
1 changed files with 6 additions and 2 deletions
|
@ -170,10 +170,14 @@ int32_t PhysicalLayer::random(int32_t min, int32_t max) {
|
|||
|
||||
int16_t PhysicalLayer::startDirect() {
|
||||
// disable encodings
|
||||
int16_t state = setEncoding(0);
|
||||
int16_t state = setEncoding(RADIOLIB_ENCODING_NRZ);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
// disable shaping
|
||||
state = setDataShaping(RADIOLIB_SHAPING_NONE);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
// set frequency deviation to the lowest possible value
|
||||
state = setFrequencyDeviation(0);
|
||||
state = setFrequencyDeviation(-1);
|
||||
return(state);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue