error deletinnng enum adc

This commit is contained in:
Noah Piqué
2021-11-30 14:14:02 +01:00
parent c8bcffdc57
commit 85d12f2da5
2 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ LOCAL CONST FLOAT m_afInitValues[ANPI_eInNumberOfInputs] =
// configuration data for the ADC
// order must fit enumeration EnADC
LOCAL CONST StADCInit m_astADCInit[eNumberOfADCs] =
LOCAL CONST StADCInit m_astADCInit[1] =
{
{ADC1}, // 00 eADC1
};
@ -260,7 +260,7 @@ VOID ANPI_vTask( PVOID arg )
// copy the values in the buffer...
for(U16 u16Cnt = 0; u16Cnt < BUFFER_HALF_SIZE; u16Cnt++ )
m_au32ADCRawData[ u16Cnt ] = m_au16ADCDataBuffer[eADC1][u16Cnt + u16Offset];
m_au32ADCRawData[ u16Cnt ] = m_au16ADCDataBuffer[u16Cnt + u16Offset];
// multiply conversion factor and add the offset
for(U16 u16Cnt = 0; u16Cnt < ANPI_eInNumberOfInputs; u16Cnt++ )