drivers: ieee802154_rf2xx: Fix logical operation
Fix using AND instead of OR. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
2571d6c3e3
commit
ec8c9f05fc
|
@ -432,7 +432,7 @@ static int rf2xx_set_channel(const struct device *dev, uint16_t channel)
|
|||
|
||||
if (ctx->trx_model == RF2XX_TRX_MODEL_212) {
|
||||
if ((ctx->cc_page == RF2XX_TRX_CC_PAGE_0
|
||||
&& ctx->cc_page == RF2XX_TRX_CC_PAGE_2)
|
||||
|| ctx->cc_page == RF2XX_TRX_CC_PAGE_2)
|
||||
&& channel > 10) {
|
||||
LOG_ERR("Unsupported channel %u", channel);
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in a new issue