mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
drivers/sx127x: fix wrong IQ invert value when setting RX mode
This commit is contained in:
parent
1387945461
commit
8454beee00
@ -235,7 +235,7 @@ void sx127x_set_rx(sx127x_t *dev)
|
||||
((sx127x_reg_read(dev, SX127X_REG_LR_INVERTIQ) &
|
||||
SX127X_RF_LORA_INVERTIQ_TX_MASK &
|
||||
SX127X_RF_LORA_INVERTIQ_RX_MASK) |
|
||||
SX127X_RF_LORA_INVERTIQ_RX_ON |
|
||||
((dev->settings.lora.flags & SX127X_IQ_INVERTED_FLAG) ? SX127X_RF_LORA_INVERTIQ_RX_ON :SX127X_RF_LORA_INVERTIQ_RX_OFF) |
|
||||
SX127X_RF_LORA_INVERTIQ_TX_OFF));
|
||||
sx127x_reg_write(dev, SX127X_REG_LR_INVERTIQ2,
|
||||
((dev->settings.lora.flags & SX127X_IQ_INVERTED_FLAG) ? SX127X_RF_LORA_INVERTIQ2_ON : SX127X_RF_LORA_INVERTIQ2_OFF));
|
||||
|
Loading…
Reference in New Issue
Block a user