fixed -0 display

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

@ -142,6 +142,8 @@ int main(int argc, char *argv[]) {
if (token != NULL)
{
current[count1] = atof(token);
if ((current[count1] < 0) && (current[count1] > -1))
current[count1] *= (-1.0);
// #ifdef DEBUG_LOGGING
// printf("current: %f\n", current[count1]);
// #endif

Loading…
Cancel
Save

Powered by TurnKey Linux.