Update main.c

pull/54/head
alanbjohnston 5 years ago committed by GitHub
parent cda631ea64
commit aa43cd5540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -805,13 +805,16 @@ for (int j = 0; j < frameCnt; j++)
if (token != NULL) if (token != NULL)
{ {
voltage[count1] = atof(token); voltage[count1] = atof(token);
#ifdef DEBUG_LOGGING
printf("voltage: %f ", voltage[count1]); printf("voltage: %f ", voltage[count1]);
#endif
token = strtok(NULL, space); token = strtok(NULL, space);
if (token != NULL) if (token != NULL)
{ {
current[count1] = atof(token); current[count1] = atof(token);
#ifdef DEBUG_LOGGING
printf("current: %f\n", current[count1]); printf("current: %f\n", current[count1]);
#endif
token = strtok(NULL, space); token = strtok(NULL, space);
} }
} }
@ -1138,13 +1141,16 @@ if (firstTime != ON)
if (token != NULL) if (token != NULL)
{ {
voltage[count1] = atof(token); voltage[count1] = atof(token);
#ifdef DEBUG_LOGGING
printf("voltage: %f ", voltage[count1]); printf("voltage: %f ", voltage[count1]);
#endif
token = strtok(NULL, space); token = strtok(NULL, space);
if (token != NULL) if (token != NULL)
{ {
current[count1] = atof(token); current[count1] = atof(token);
#ifdef DEBUG_LOGGING
printf("current: %f\n", current[count1]); printf("current: %f\n", current[count1]);
#endif
token = strtok(NULL, space); token = strtok(NULL, space);
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.