Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio
ocli
FIX-there-no-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File FIX-there-no-fix.patch of Package ocli
diff --git a/owntracks-cli-publisher.c b/owntracks-cli-publisher.c index e695f8f..e18dc34 100644 --- a/owntracks-cli-publisher.c +++ b/owntracks-cli-publisher.c @@ -450,7 +450,7 @@ static void conditionally_log_fix(struct udata *ud, struct gps_data_t *gpsdata) #ifdef STATUS_UNK case STATUS_UNK: #endif - if (ud->verbose) { + if (ud->verbose && gpsdata->fix.time.tv_sec < 0) { fprintf(stderr, ".. no fix\n"); } break; @@ -472,6 +472,14 @@ static void conditionally_log_fix(struct udata *ud, struct gps_data_t *gpsdata) #endif #endif +#if GPSD_API_MAJOR_VERSION >= 11 + // Even if there is no fix there can be! + // If fix time is bigger than zero then there is fix available + if(gpsdata->fix.time.tv_sec > 0) { + valid = true; + } +#endif + if (valid == false) return;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor