print voltage and current

pull/121/head
alanbjohnston 5 years ago committed by GitHub
parent f9ea248199
commit 092a036992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -585,7 +585,7 @@ int main(int argc, char * argv[]) {
if (token != NULL) { if (token != NULL) {
voltage[count1] = (float) atof(token); voltage[count1] = (float) atof(token);
#ifdef DEBUG_LOGGING #ifdef DEBUG_LOGGING
// printf("voltage: %f ", voltage[count1]); printf("voltage: %f ", voltage[count1]);
#endif #endif
token = strtok(NULL, space); token = strtok(NULL, space);
if (token != NULL) { if (token != NULL) {
@ -593,7 +593,7 @@ int main(int argc, char * argv[]) {
if ((current[count1] < 0) && (current[count1] > -0.5)) if ((current[count1] < 0) && (current[count1] > -0.5))
current[count1] *= (-1.0f); current[count1] *= (-1.0f);
#ifdef DEBUG_LOGGING #ifdef DEBUG_LOGGING
// printf("current: %f\n", current[count1]); printf("current: %f\n", current[count1]);
#endif #endif
token = strtok(NULL, space); token = strtok(NULL, space);
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.