diff --git a/drivers/at86rf2xx/at86rf2xx_getset.c b/drivers/at86rf2xx/at86rf2xx_getset.c index 6072b2d55211bfa2188d9f3627c72af3c632f983..a4928d89c4176ba03e6a5b1889e03fa8a610ea39 100644 --- a/drivers/at86rf2xx/at86rf2xx_getset.c +++ b/drivers/at86rf2xx/at86rf2xx_getset.c @@ -140,11 +140,11 @@ uint8_t at86rf2xx_get_chan(const at86rf2xx_t *dev) void at86rf2xx_set_chan(at86rf2xx_t *dev, uint8_t channel) { - if ((channel > AT86RF2XX_MAX_CHANNEL) || + if ((channel > AT86RF2XX_MAX_CHANNEL) #if AT86RF2XX_MIN_CHANNEL /* is zero for sub-GHz */ - (channel < AT86RF2XX_MIN_CHANNEL) || + || (channel < AT86RF2XX_MIN_CHANNEL) #endif - (dev->netdev.chan == channel)) { + ) { return; }