Skip to content

Commit e9abd05

Browse files
authored
Fix logic in Ephemeris::is_valid_at_time (#39)
1 parent d943d36 commit e9abd05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ephemeris.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ impl Ephemeris {
355355
/// Is this ephemeris usable?
356356
pub fn is_valid_at_time(&self, t: GpsTime) -> bool {
357357
let result = unsafe { c_bindings::ephemeris_valid(&self.0, t.c_ptr()) };
358-
result == 0
358+
result == 1
359359
}
360360

361361
/// Check if this this ephemeris is healthy

0 commit comments

Comments
 (0)