Skip to content

Commit 2684870

Browse files
committed
drivers/at86rf2xx: fix default page
1 parent 99b13cb commit 2684870

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/at86rf2xx/at86rf2xx.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
8585
/* set default channel, page and TX power */
8686
at86rf2xx_configure_phy(dev, AT86RF2XX_DEFAULT_CHANNEL, AT86RF2XX_DEFAULT_PAGE, AT86RF2XX_DEFAULT_TXPOWER);
8787

88+
/* Record the default channel page in the device descriptor */
89+
#if AT86RF2XX_HAVE_SUBGHZ
90+
dev->page = AT86RF2XX_DEFAULT_PAGE;
91+
#endif
92+
8893
/* set default options */
8994

9095
if (!IS_ACTIVE(AT86RF2XX_BASIC_MODE)) {

0 commit comments

Comments
 (0)