Skip to content

Commit

Permalink
reset all nv modules on zigbee reset
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Oct 30, 2023
1 parent 0312326 commit a2dcd32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ void light_blink_stop(void)
void buttonKeepPressed(u8 btNum){
if(btNum == VK_SW1){
g_sensorAppCtx.state = APP_FACTORY_NEW_DOING;
zb_factoryReset();
SYSTEM_RESET();
tl_bdbReset2FN();
zb_resetDevice();
}else if(btNum == VK_SW2){

}
Expand Down
2 changes: 1 addition & 1 deletion src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void app_task(void)
static void sensorDeviceSysException(void)
{
#if 1
SYSTEM_RESET();
zb_resetDevice();
#else
light_on();
while(1);
Expand Down
2 changes: 1 addition & 1 deletion src/zb_appCb.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void sensorDevice_otaProcessMsgHandler(u8 evt, u8 status)
void sensorDevice_leaveCnfHandler(nlme_leave_cnf_t *pLeaveCnf)
{
if(pLeaveCnf->status == SUCCESS){
//SYSTEM_RESET();
//zb_resetDevice();
}
}

Expand Down

0 comments on commit a2dcd32

Please sign in to comment.