1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

at86rf2xx: fix warnings when building with -Wextra -pedantic

This commit is contained in:
Yannic Schröder 2016-10-18 10:21:54 +02:00
parent ed67143a2a
commit c7d73e24c1
2 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,7 @@ uint8_t at86rf2xx_get_page(at86rf2xx_t *dev)
#ifdef MODULE_AT86RF212B
return dev->page;
#else
(void) dev;
return 0;
#endif
}
@ -167,6 +168,9 @@ void at86rf2xx_set_page(at86rf2xx_t *dev, uint8_t page)
dev->page = page;
at86rf2xx_configure_phy(dev);
#else
(void) dev;
(void) page;
#endif
}

View File

@ -30,6 +30,7 @@
#define AT86RF2XX_H_
#include <stdint.h>
#include <stdbool.h>
#include "board.h"
#include "periph/spi.h"