Small fix

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2024-04-09 15:14:08 +01:00
parent ccae98208a
commit 52d2fb1b3a
Signed by: TiagoRG
GPG Key ID: DFCD48E3F420DB42
1 changed files with 0 additions and 1 deletions

View File

@ -32,7 +32,6 @@ int main() {
} }
AD1CON1bits.ASAM = 1; AD1CON1bits.ASAM = 1;
while (IFS1bits.AD1IF == 0); while (IFS1bits.AD1IF == 0);
int value = ADC1BUF0;
int total = 0; int total = 0;
int *p = (int *)(&ADC1BUF0); int *p = (int *)(&ADC1BUF0);
for (; p <= (int *)(&ADC1BUFF); p+=4) for (; p <= (int *)(&ADC1BUFF); p+=4)