Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
Add massive overload protection
Browse files Browse the repository at this point in the history
  • Loading branch information
SanyaPilot authored Jun 29, 2020
1 parent e4bd943 commit 9f0553c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,5 +653,11 @@ if (app_data->curr_time >= app_data->minutes_for_rec * 60000 && app_data->minute
show_menu_animate(menu, 0, ANIMATE_LEFT);
}

if (app_data->rec_counter == 1000){
set_hrm_mode(0);
set_update_period(0, 0);
app_data->menu_stage = 4;
show_menu_animate(menu, 0, ANIMATE_LEFT);
}
return 0;
}

0 comments on commit 9f0553c

Please sign in to comment.