From 004d7f8e204ded87cb40c076a294cdd2f7fa7d9f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 6 Sep 2020 09:04:21 -0400 Subject: [PATCH] Update main.c --- afsk/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index ef607a94..2c571ece 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -1051,10 +1051,11 @@ if (payload == ON) { if (token != NULL) token = strtok(NULL, space); - if (count1 == 2) + if (count1 == 3) RXTemperature = atof(token); } - printf("RX Temperature: %f \n", RXTemperature); + printf("RXTemperature: %f \n", RXTemperature); + if (token != NULL) { gyroX = atof(token);