[SX127x] Explicitly enabled CRC (#706)
This commit is contained in:
parent
48d49aabba
commit
c3de8b9099
2 changed files with 16 additions and 0 deletions
|
@ -29,6 +29,10 @@ int16_t SX1272::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t sync
|
|||
state = setGain(gain);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
// set publicly accessible settings that are not a part of begin method
|
||||
state = setCRC(true);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
return(state);
|
||||
}
|
||||
|
||||
|
@ -56,6 +60,10 @@ int16_t SX1272::beginFSK(float freq, float br, float freqDev, float rxBw, int8_t
|
|||
RADIOLIB_ASSERT(state);
|
||||
}
|
||||
|
||||
// set publicly accessible settings that are not a part of begin method
|
||||
state = setCRC(true);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
return(state);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,10 @@ int16_t SX1278::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t sync
|
|||
state = setGain(gain);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
// set publicly accessible settings that are not a part of begin method
|
||||
state = setCRC(true);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
return(state);
|
||||
}
|
||||
|
||||
|
@ -56,6 +60,10 @@ int16_t SX1278::beginFSK(float freq, float br, float freqDev, float rxBw, int8_t
|
|||
RADIOLIB_ASSERT(state);
|
||||
}
|
||||
|
||||
// set publicly accessible settings that are not a part of begin method
|
||||
state = setCRC(true);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
return(state);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue