Small clean up.

This commit is contained in:
Jonathan Naylor 2016-11-07 21:28:06 +00:00
parent ee44fd81ef
commit 612b10cd11
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ void CIO::startInt()
void CIO::interrupt() void CIO::interrupt()
{ {
if (ADC->ADC_ISR & ADC_ISR_EOC_Chan) { // Ensure there was an End-of-Conversion and we read the ISR reg if ((ADC->ADC_ISR & ADC_ISR_EOC_Chan) == ADC_ISR_EOC_Chan) { // Ensure there was an End-of-Conversion and we read the ISR reg
uint8_t control = MARK_NONE; uint8_t control = MARK_NONE;
uint16_t sample = DC_OFFSET; uint16_t sample = DC_OFFSET;