[SX1272] Correct LoRa mode CRC register values
This commit is contained in:
parent
0c40aa7f85
commit
acc16c25bd
1 changed files with 2 additions and 2 deletions
|
@ -365,9 +365,9 @@ int16_t SX1272::setCRC(bool enable, bool mode) {
|
|||
// set LoRa CRC
|
||||
SX127x::crcEnabled = 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 {
|
||||
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 {
|
||||
// set FSK CRC
|
||||
|
|
Loading…
Add table
Reference in a new issue