Small efficiency update to the interrupt routine.

This commit is contained in:
Jonathan Naylor 2016-01-18 21:52:04 +00:00
parent 4fb563f534
commit 79e21070bd
1 changed files with 2 additions and 3 deletions

5
IO.cpp
View File

@ -346,9 +346,8 @@ void CIO::interrupt()
uint8_t control = MARK_NONE; uint8_t control = MARK_NONE;
uint16_t sample = DC_OFFSET; uint16_t sample = DC_OFFSET;
if (m_txBuffer.getData() > 0U) m_txBuffer.get(sample, control);
m_txBuffer.get(sample, control);
#if defined(__SAM3X8E__) #if defined(__SAM3X8E__)
DACC->DACC_CDR = sample; DACC->DACC_CDR = sample;
sample = ADC->ADC_CDR[ADC_CDR_Chan]; sample = ADC->ADC_CDR[ADC_CDR_Chan];