This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530输出功率

我再协议栈用添加更改功率的一行代码,MY_reqTxPower的值是通过按键更改的,为什么用频谱仪测得功率没有变化?请问应该怎么更改?

MAC_INTERNAL_API void macRadioSetTxPower(uint8 txPower)

{

……


//=========================add by user================================
#if MY_POWER_EN
  reqTxPower = MY_reqTxPower; //功率,add by user,可以由串口更改
#endif
//====================================================================
 
  /* update the radio power setting */
  macRadioUpdateTxPower();

}