1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00
19467: drivers/at86rf2xx: fix default page being ignored r=maribu a=jia200x



Co-authored-by: Jose Alamos <jose@alamos.cc>
This commit is contained in:
bors[bot] 2023-04-13 16:26:35 +00:00 committed by GitHub
commit 5a523ee894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {