From 612b10cd11feff60948063bd31ee6acb79e41b8e Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 7 Nov 2016 21:28:06 +0000 Subject: [PATCH] Small clean up. --- IODue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IODue.cpp b/IODue.cpp index b31b776..e465da3 100644 --- a/IODue.cpp +++ b/IODue.cpp @@ -159,7 +159,7 @@ void CIO::startInt() 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; uint16_t sample = DC_OFFSET;