Skip to content

Commit 056e2b1

Browse files
committed
app: main: Remove redundant timer calls
Removes redundant calls to timer_*_stop in FOTA states. Signed-off-by: Bernt Johan Damslora <bernt.damslora@nordicsemi.no>
1 parent 1c2bf6d commit 056e2b1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/src/main.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,10 +1557,6 @@ static void fota_entry(void *o)
15571557

15581558
LOG_DBG("%s", __func__);
15591559

1560-
/* Suspend all periodic activity while in FOTA */
1561-
timer_sample_stop();
1562-
timer_send_data_stop();
1563-
15641560
#if defined(CONFIG_APP_LED)
15651561
int err;
15661562
/* Purple pattern during download - indefinite for ongoing process */
@@ -1745,10 +1741,6 @@ static void fota_waiting_for_network_disconnect_to_apply_image_entry(void *o)
17451741

17461742
return;
17471743
}
1748-
1749-
/* Ensure all timers are stopped while awaiting disconnect to apply image */
1750-
timer_sample_stop();
1751-
timer_send_data_stop();
17521744
}
17531745

17541746
static enum smf_state_result fota_waiting_for_network_disconnect_to_apply_image_run(void *o)

0 commit comments

Comments
 (0)