Update main.c changed to 4

pi-sensors-auto-gps
Alan Johnston 3 days ago committed by GitHub
parent 08fae87d17
commit 8410d2db40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -784,7 +784,7 @@ int main(int argc, char * argv[]) {
const char space[2] = " ";
token = strtok(cmdbuffer, space);
// printf("token: %s\n", token);
for (count1 = GPS; count1 < (GPS + 3); count1++) {
for (count1 = GPS; count1 < (GPS + 4); count1++) {
if (token != NULL) {
sensor[count1] = (float) atof(token);
strcpy(sensor_string[count1], token);

Loading…
Cancel
Save

Powered by TurnKey Linux.