Skip to content

Commit

Permalink
fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarmek authored and Yarmek committed Aug 31, 2017
1 parent 45792e1 commit 4bd378e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kbdwtchdg/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ void reset_timer()
State check_trigger(State old_state)
{
State new_state = old_state;
if (blink_count > THRESHOLD) // reset timer to keep the watchdog happy
if (blink_count > THRESHOLD)
{
switch(old_state)
{
Expand All @@ -706,11 +706,11 @@ State check_trigger(State old_state)
break;
case monitoring:
new_state = old_state;
reset_timer();
reset_timer(); // reset timer to keep the watchdog happy
break;
case monitoring_warning:
new_state = monitoring;
reset_timer();
reset_timer(); // reset timer to keep the watchdog happy
break;
}
}
Expand Down Expand Up @@ -848,7 +848,7 @@ int main()

state = check_trigger(state);

if(timer_count > WARNING_INTERVAL)
if (timer_count > WARNING_INTERVAL)
{
state = monitoring_warning; // go to monitoring_warning
}
Expand Down

0 comments on commit 4bd378e

Please sign in to comment.