Hi dialog,
I am checking the system by using the
scanning function for 7.8s as a loop, once it reach the 7.8s, I will reset the system by the following code and restart the scanning function again. However when i run it for many times, the system seems stop reset the system. Any ideas?
case GAPM_SET_DEV_CONFIG:
{
if(param->status != GAP_ERR_NO_ERROR)
{
ASSERT_ERR(0); // unexpected error
}
else
{
app_scan();
ke_timer_set(APP_SWITCH_ROLE_TIMER, TASK_APP, 768); //768*10ms
}
}
break;
Device:
Hi liuluan002,
I dont see something suspicious in tha piece of code that you ve pasted, you will have to check where the system ends up and resets, in the platform_reset() function probably? you can place a break point there and check if your code goes through that function. Also one suggestion, use the timer api and not ke_timer_set() function.
Thanks MT_dialog