at86rfr2xx: NETOPT_CSMA_RETRIES parenthesis
Reorder parenthesis to improve readability.
This commit is contained in:
parent
5d69406d47
commit
86b4dd43b0
@ -545,8 +545,8 @@ static int _set(netdev_t *netdev, netopt_t opt, const void *val, size_t len)
|
|||||||
|
|
||||||
case NETOPT_CSMA_RETRIES:
|
case NETOPT_CSMA_RETRIES:
|
||||||
assert(len <= sizeof(uint8_t));
|
assert(len <= sizeof(uint8_t));
|
||||||
if (!(dev->netdev.flags & AT86RF2XX_OPT_CSMA ||
|
if (!(dev->netdev.flags & AT86RF2XX_OPT_CSMA) ||
|
||||||
(*((uint8_t *)val) > 5))) {
|
(*((uint8_t *)val) > 5)) {
|
||||||
/* If CSMA is disabled, don't allow setting retries */
|
/* If CSMA is disabled, don't allow setting retries */
|
||||||
res = -EINVAL;
|
res = -EINVAL;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user