X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fcommon%2Fgps.rs;h=64772c775189526e06bec8cb8b604e8e7055c427;hb=bf60d7cf069a190b6d0310cc9682a6041d2f831d;hp=b0539173272bbe5b5a0fc833deb8eb8b4899f278;hpb=9a8a254d92e81cb9030dce2ff7055160ea042246;p=gps-watch.git diff --git a/src/common/gps.rs b/src/common/gps.rs index b053917..64772c7 100644 --- a/src/common/gps.rs +++ b/src/common/gps.rs @@ -347,8 +347,16 @@ impl Gps { return false; } - if pos_fix_indicator != b"1" { - return false; + match pos_fix_indicator { + b"1" => { + // Valid standard GPS fix (low resolution). + }, + b"2" => { + // Valid differential GPS fix (high resolution). + }, + _ => { + return false; + } } if utc_time.len() < 6 {