Skip to content
Snippets Groups Projects
Unverified Commit e897826c authored by Peter Kietzmann's avatar Peter Kietzmann Committed by GitHub
Browse files

Merge pull request #9616 from bergzand/pr/at86rf2xx/always_set_channel

at86rf2xx: Always set channel on device
parents 3ab20292 b025362a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment