mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-10-05 09:55:07 +00:00
Remove unnecessary parentheses
This commit is contained in:
parent
c359e98bf1
commit
7fdb9849de
@ -210,9 +210,9 @@ set_channel(uint8_t channel)
|
|||||||
was_on = 1;
|
was_on = 1;
|
||||||
off();
|
off();
|
||||||
}
|
}
|
||||||
REG(RFCORE_XREG_FREQCTRL) = (CC2538_RF_CHANNEL_MIN +
|
REG(RFCORE_XREG_FREQCTRL) = CC2538_RF_CHANNEL_MIN +
|
||||||
(channel - CC2538_RF_CHANNEL_MIN) *
|
(channel - CC2538_RF_CHANNEL_MIN) * CC2538_RF_CHANNEL_SPACING;
|
||||||
CC2538_RF_CHANNEL_SPACING);
|
|
||||||
/* switch radio back on only if radio was on before - otherwise will turn on radio foor sleepy nodes */
|
/* switch radio back on only if radio was on before - otherwise will turn on radio foor sleepy nodes */
|
||||||
if(was_on) {
|
if(was_on) {
|
||||||
on();
|
on();
|
||||||
|
Loading…
Reference in New Issue
Block a user