Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
fix: moved timer
Browse files Browse the repository at this point in the history
  • Loading branch information
simensrostad committed Aug 20, 2019
1 parent cb93467 commit f1563ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions applications/cat_tracker/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ void main(void)
adxl362_init();
gps_control_init(gps_control_handler);
cloud_publish(NO_GPS_FIX, SYNCRONIZATION, INCLUDE_MOD_D);
start_restart_mov_timer();

check_mode:
start_restart_mov_timer();
if (check_mode()) {
active = true;
goto active;
Expand Down Expand Up @@ -259,7 +259,6 @@ void main(void)
}
events[1].state = K_POLL_STATE_NOT_READY;
events[0].state = K_POLL_STATE_NOT_READY;
start_restart_mov_timer();
k_sleep(K_SECONDS(check_active_wait(active)));

goto check_mode;
Expand Down

0 comments on commit f1563ca

Please sign in to comment.