Skip to content

Commit

Permalink
Merge #19468
Browse files Browse the repository at this point in the history
19468: drivers/at86rf2xx: fix default page being ignored [backport 2023.01] r=MrKevinWeiss a=MrKevinWeiss

# Backport of #19467



Co-authored-by: Jose Alamos <[email protected]>
  • Loading branch information
bors[bot] and jia200x authored Apr 14, 2023
2 parents 6fb5d0c + d271729 commit 2f64109
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/at86rf2xx/at86rf2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
/* set default channel, page and TX power */
at86rf2xx_configure_phy(dev, AT86RF2XX_DEFAULT_CHANNEL, AT86RF2XX_DEFAULT_PAGE, AT86RF2XX_DEFAULT_TXPOWER);

/* Record the default channel page in the device descriptor */
#if AT86RF2XX_HAVE_SUBGHZ
dev->page = AT86RF2XX_DEFAULT_PAGE;
#endif

/* set default options */

if (!IS_ACTIVE(AT86RF2XX_BASIC_MODE)) {
Expand Down

0 comments on commit 2f64109

Please sign in to comment.