Update main.c

pull/58/head
alanbjohnston 5 years ago committed by GitHub
parent dba9388249
commit 004d7f8e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1051,10 +1051,11 @@ if (payload == ON)
{ {
if (token != NULL) if (token != NULL)
token = strtok(NULL, space); token = strtok(NULL, space);
if (count1 == 2) if (count1 == 3)
RXTemperature = atof(token); RXTemperature = atof(token);
} }
printf("RX Temperature: %f \n", RXTemperature); printf("RXTemperature: %f \n", RXTemperature);
if (token != NULL) if (token != NULL)
{ {
gyroX = atof(token); gyroX = atof(token);

Loading…
Cancel
Save

Powered by TurnKey Linux.