From 268487097bb004f76ee04351d7db0062304da664 Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Thu, 13 Apr 2023 11:10:54 +0200 Subject: [PATCH] drivers/at86rf2xx: fix default page --- drivers/at86rf2xx/at86rf2xx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/at86rf2xx/at86rf2xx.c b/drivers/at86rf2xx/at86rf2xx.c index 77e6daab93..ee5626abce 100644 --- a/drivers/at86rf2xx/at86rf2xx.c +++ b/drivers/at86rf2xx/at86rf2xx.c @@ -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)) {