From 37168ce57993e4ff9fcf27dc02da254eb930f62a Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 5 Sep 2020 15:23:51 -0400 Subject: [PATCH] removed rest of voltage and current logging --- afsk/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index e928b86c..25ab7857 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -575,6 +575,7 @@ for (int j = 0; j < frameCnt; j++) token = strtok(cmdbuffer, space); float voltage[9], current[9]; + memset(voltage, 0, sizeof(voltage)); memset(current, 0, sizeof(current)); @@ -909,7 +910,7 @@ if (firstTime != ON) { voltage[count1] = atof(token); #ifdef DEBUG_LOGGING - printf("voltage: %f ", voltage[count1]); +// printf("voltage: %f ", voltage[count1]); #endif token = strtok(NULL, space); if (token != NULL) @@ -918,7 +919,7 @@ if (firstTime != ON) if ((current[count1] < 0) && (current[count1] > -0.5)) current[count1] *= (-1.0); #ifdef DEBUG_LOGGING - printf("current: %f\n", current[count1]); +// printf("current: %f\n", current[count1]); #endif token = strtok(NULL, space); }