rf230bb: Fix missing ')' and indentation.
This commit is contained in:
parent
72679a819b
commit
1bddbae297
|
@ -1679,7 +1679,7 @@ rf230_cca(void)
|
||||||
|
|
||||||
/* Use ED register to determine result. 77dBm is poweron csma default.*/
|
/* Use ED register to determine result. 77dBm is poweron csma default.*/
|
||||||
#ifdef RF230_CONF_CCA_THRES
|
#ifdef RF230_CONF_CCA_THRES
|
||||||
if (hal_register_read(RG_PHY_ED_LEVEL)<(91+RF230_CONF_CCA_THRES) cca=0xff;
|
if (hal_register_read(RG_PHY_ED_LEVEL)<(91+RF230_CONF_CCA_THRES)) cca=0xff;
|
||||||
#else
|
#else
|
||||||
if (hal_register_read(RG_PHY_ED_LEVEL)<(91-77)) cca=0xff;
|
if (hal_register_read(RG_PHY_ED_LEVEL)<(91-77)) cca=0xff;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1701,7 +1701,7 @@ rf230_cca(void)
|
||||||
/* If already in receive mode can read the current ED register without delay */
|
/* If already in receive mode can read the current ED register without delay */
|
||||||
/* CCA energy threshold = -91dB + 2*SR_CCA_ED_THRESH. Reset defaults to -77dB */
|
/* CCA energy threshold = -91dB + 2*SR_CCA_ED_THRESH. Reset defaults to -77dB */
|
||||||
#ifdef RF230_CONF_CCA_THRES
|
#ifdef RF230_CONF_CCA_THRES
|
||||||
if (hal_register_read(RG_PHY_ED_LEVEL)<(91+RF230_CONF_CCA_THRES) cca=0xff;
|
if (hal_register_read(RG_PHY_ED_LEVEL)<(91+RF230_CONF_CCA_THRES)) cca=0xff;
|
||||||
#else
|
#else
|
||||||
if (hal_register_read(RG_PHY_ED_LEVEL)<(91-77)) cca=0xff;
|
if (hal_register_read(RG_PHY_ED_LEVEL)<(91-77)) cca=0xff;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue