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