Skip to content

Commit

Permalink
Writing ADC bounds shall clear the alarm flags
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Jun 26, 2015
1 parent 06b91d0 commit 8c713d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moat_adc.c
Expand Up @@ -95,6 +95,7 @@ void write_adc(uint8_t chan, uint8_t *buf, uint8_t len)
}
adcp->lower = lower;
adcp->upper = upper;
adcp->flags &=~ (ADC_IS_ALERT_L|ADC_IS_ALERT_H);
}

#ifdef CONDITIONAL_SEARCH
Expand Down

0 comments on commit 8c713d0

Please sign in to comment.