Tool/software: TI-RTOS
Hi,
I'm using the sensor example code and when I remove the sensor from the network I want that is reset.
I change this:
On the sensor_process() added:
if (Sensor_events & SENSOR_RESET_MODE_EVT) { /* Clear the event */ Util_clearEvent(&Sensor_events, SENSOR_RESET_MODE_EVT); /* Reset sensor */ SysCtrlSystemReset(); //HapiResetDevice(); }
On the jdllcDisassocIndCb and jdllcDisassocCnfCb I call the event.
This only doesn't work the first time after flashing the board.
Any idea why this is happening?
Best regards.