diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-09 01:50:53 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-09 01:50:53 -0500 |
commit | 2663033714a98a9c9ea1165c330371b949faec0d (patch) | |
tree | 0090a6f172564371681b899f2a8663b2b78cf752 /libgpsmm.cpp | |
parent | 9d6dc2f1f95d0179c6175955c3dae0c5299e9a78 (diff) | |
download | gpsd-2663033714a98a9c9ea1165c330371b949faec0d.tar.gz |
Give gps_waiting() a timeout argument. Use it systematically in test clients.
cgps and gpxlogger are live-tested and work. All regression tests pass.
Diffstat (limited to 'libgpsmm.cpp')
-rw-r--r-- | libgpsmm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgpsmm.cpp b/libgpsmm.cpp index f7d2354b..1c672c65 100644 --- a/libgpsmm.cpp +++ b/libgpsmm.cpp @@ -56,9 +56,9 @@ struct gps_data_t* gpsmm::read(void) } } -bool gpsmm::waiting(void) +bool gpsmm::waiting(int timeout) { - return gps_waiting(gps_data()); + return gps_waiting(gps_data(), timeout); } void gpsmm::clear_fix(void) |