This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sdk:gps2serial [2020/03/25 12:18] – fachet | sdk:gps2serial [2020/03/25 12:21] (current) – fachet | ||
|---|---|---|---|
| Line 106: | Line 106: | ||
| if (rv < 0 || ( data = recv(gpsd)) == "" | if (rv < 0 || ( data = recv(gpsd)) == "" | ||
| nb_syslog(" | nb_syslog(" | ||
| + | close(gpsd); | ||
| if ((gpsd = connect_gpsd()) < 0) | if ((gpsd = connect_gpsd()) < 0) | ||
| exit(5); /* can't connect */ | exit(5); /* can't connect */ | ||
| Line 119: | Line 120: | ||
| close(serial_fd); | close(serial_fd); | ||
| exit(6); | exit(6); | ||
| - | |||
| - | |||
| </ | </ | ||