Update main.c restore sensor_payload

sim-fail-1
Alan Johnston 4 months ago committed by GitHub
parent fc00d66a44
commit 57ccbbd3f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -675,7 +675,7 @@ int main(int argc, char * argv[]) {
token = strtok(NULL, space);
}
}
strcpy(sensor_payload, buffer2); // restore sensor_payload after strtok operation
printf("\n");
// if (sensor[GPS1] != 0) {
if ((sensor[GPS1] > -90.0) && (sensor[GPS1] < 90.0) && (sensor[GPS1] != 0.0)) {

Loading…
Cancel
Save

Powered by TurnKey Linux.