Skip to content

Commit

Permalink
steering every 60 seconds to save battery
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Nov 8, 2023
1 parent 6a8d96d commit 9df22f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/zb_appCb.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ s32 sensorDevice_bdbNetworkSteerStart(void *arg){

s32 sensorDevice_rejoinBackoff(void *arg){
if(zb_isDeviceFactoryNew()){
if(deviceRejoinBackoffTimerEvt){
TL_ZB_TIMER_CANCEL(&deviceRejoinBackoffTimerEvt);
}
deviceRejoinBackoffTimerEvt = NULL;
return -1;
}

Expand Down Expand Up @@ -193,7 +191,7 @@ void zbdemo_bdbCommissioningCb(u8 status, void *arg){
if(steerTimerEvt){
TL_ZB_TIMER_CANCEL(&steerTimerEvt);
}
steerTimerEvt = TL_ZB_TIMER_SCHEDULE(sensorDevice_bdbNetworkSteerStart, NULL, jitter);
steerTimerEvt = TL_ZB_TIMER_SCHEDULE(sensorDevice_bdbNetworkSteerStart, NULL, jitter + 60 * 1000);
}
break;
case BDB_COMMISSION_STA_FORMATION_FAILURE:
Expand Down

0 comments on commit 9df22f6

Please sign in to comment.