Merge pull request #746 from Olocool17/master
[SX1272] Correct LoRa mode CRC register values
This commit is contained in:
commit
1c573bf598
1 changed files with 2 additions and 2 deletions
|
@ -365,9 +365,9 @@ int16_t SX1272::setCRC(bool enable, bool mode) {
|
||||||
// set LoRa CRC
|
// set LoRa CRC
|
||||||
SX127x::crcEnabled = enable;
|
SX127x::crcEnabled = enable;
|
||||||
if(enable) {
|
if(enable) {
|
||||||
return(this->mod->SPIsetRegValue(RADIOLIB_SX127X_REG_MODEM_CONFIG_2, RADIOLIB_SX1272_RX_CRC_MODE_ON, 2, 2));
|
return(this->mod->SPIsetRegValue(RADIOLIB_SX127X_REG_MODEM_CONFIG_1, RADIOLIB_SX1272_RX_CRC_MODE_ON, 1, 1));
|
||||||
} else {
|
} else {
|
||||||
return(this->mod->SPIsetRegValue(RADIOLIB_SX127X_REG_MODEM_CONFIG_2, RADIOLIB_SX1272_RX_CRC_MODE_OFF, 2, 2));
|
return(this->mod->SPIsetRegValue(RADIOLIB_SX127X_REG_MODEM_CONFIG_1, RADIOLIB_SX1272_RX_CRC_MODE_OFF, 1, 1));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// set FSK CRC
|
// set FSK CRC
|
||||||
|
|
Loading…
Add table
Reference in a new issue