The below is my code, it is no work too. The status return failure,why?
bool status = FAILURE;
if ( txPower <= HCI_EXT_TX_POWER_5_DBM )
{
status = HCI_EXT_ModemTestTxCmd( cwMode, txFreq );
status = HCI_EXT_SetTxPowerCmd( txPower );
}
else
{
HCI_EXT_EndModemTestCmd();
}
if I put the command into the SimpleBLEPeripheral_init(), it will be work, liks below:
static void SimpleBLEPeripheral_init(void)
{
ICall_registerApp(&selfEntity, &sem);
HCI_EXT_ModemTestTxCmd( 1, 19 );
}
may be i miss something?