mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/at86rf2xx: fix default page
This commit is contained in:
parent
99b13cbb1b
commit
268487097b
@ -85,6 +85,11 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
|
|||||||
/* set default channel, page and TX power */
|
/* set default channel, page and TX power */
|
||||||
at86rf2xx_configure_phy(dev, AT86RF2XX_DEFAULT_CHANNEL, AT86RF2XX_DEFAULT_PAGE, AT86RF2XX_DEFAULT_TXPOWER);
|
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 */
|
/* set default options */
|
||||||
|
|
||||||
if (!IS_ACTIVE(AT86RF2XX_BASIC_MODE)) {
|
if (!IS_ACTIVE(AT86RF2XX_BASIC_MODE)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user