Skip to content

Commit

Permalink
at86rf215: fix OFDM channel spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Mar 9, 2020
1 parent 92b78e0 commit edd1832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/at86rf215/at86rf215_ofdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ static void _set_option(at86rf215_t *dev, uint8_t option)

/* set channel center frequency */
if (superGHz) {
at86rf215_reg_write16(dev, dev->RF->RG_CCF0L, _channel_center_freq_kHz_2400MHz(option) / 25);
at86rf215_reg_write16(dev, dev->RF->RG_CCF0L, 1 + _channel_center_freq_kHz_2400MHz(option) / 25);
} else {
at86rf215_reg_write16(dev, dev->RF->RG_CCF0L, _channel_center_freq_kHz_868MHz(option) / 25);
at86rf215_reg_write16(dev, dev->RF->RG_CCF0L, 1 + _channel_center_freq_kHz_868MHz(option) / 25);
}

at86rf215_reg_write(dev, dev->BBC->RG_OFDMC, option - 1);
Expand Down

0 comments on commit edd1832

Please sign in to comment.