Commit cb431a97 authored by 陈家乐's avatar 陈家乐

🐞 fix:QAC问题4749

parent bab91c00
......@@ -121,7 +121,7 @@ uint16_t ADC_Converse_Scan(ADC_Channel_t ch, uint32_t times, uint16_t *buf)
uint32_t i,j;
volatile uint8_t flag;
uint32_t total = 0;
uint16_t *buff = buf;
if(times == 0)
{
return 0;
......@@ -149,7 +149,7 @@ uint16_t ADC_Converse_Scan(ADC_Channel_t ch, uint32_t times, uint16_t *buf)
while(INTC_GetPendingIRQ(ADC_IRQn) == 0);
INTC_ClearPendingIRQ(ADC_IRQn); // clear INTAD interrupt flag
*buf++ = ADC->ADCR;
*buff++ = ADC->ADCR;
total += ADC->ADCR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment