From 5ee28dbbb177b296837ef0c7562f5d1001fd14bd Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 5 Sep 2020 12:01:07 -0400 Subject: [PATCH] fixed -0 display --- afsk/telem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/afsk/telem.c b/afsk/telem.c index 1f95830b..34367402 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -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