From b89f03581c35da677f6ab2b458905ffab8ebec4d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 23 May 2024 09:59:20 -0400 Subject: [PATCH] Update main.c add prints --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index a093272e..55c2793c 100644 --- a/main.c +++ b/main.c @@ -2251,7 +2251,7 @@ void init_adc() char data[1]={0}; if(read(adc_file, data, 1) != 1) { - fprintf(stderr,"Erorr: ADC Input/output Erorr \n"); + fprintf(stderr,"Error: ADC Input/output Erorr \n"); } else { @@ -2281,7 +2281,7 @@ void read_adc_process(int sig_num) adc_buffer[wav_position] = 0; if(read(adc_file, data, 1) != 1) { - fprintf(stderr,"Erorr: ADC Input/output Erorr \n"); + fprintf(stderr,"Error: ADC Input/output Erorr \n"); } else { @@ -2289,7 +2289,7 @@ void read_adc_process(int sig_num) adc_buffer[wav_position] = data[0]; // Output data to screen - // printf("Digital value of analog input: %d in %d us\n", data[0], micros() - time_start); // millis() - time_start); + printf("Digital value of analog input: %d in %d us\n", data[0], micros() - time_start); // millis() - time_start); } wav_position++;