mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +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;
|
||||
off();
|
||||
}
|
||||
REG(RFCORE_XREG_FREQCTRL) = (CC2538_RF_CHANNEL_MIN +
|
||||
(channel - CC2538_RF_CHANNEL_MIN) *
|
||||
CC2538_RF_CHANNEL_SPACING);
|
||||
REG(RFCORE_XREG_FREQCTRL) = CC2538_RF_CHANNEL_MIN +
|
||||
(channel - CC2538_RF_CHANNEL_MIN) * CC2538_RF_CHANNEL_SPACING;
|
||||
|
||||
/* switch radio back on only if radio was on before - otherwise will turn on radio foor sleepy nodes */
|
||||
if(was_on) {
|
||||
on();
|
||||
|
Loading…
Reference in New Issue
Block a user