summaryrefslogtreecommitdiff
path: root/subframe.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2011-01-04 19:22:00 -0800
committerGary E. Miller <gem@rellim.com>2011-01-04 19:22:00 -0800
commit866b24778872a4f1e33789905bf50d1b83fa68d0 (patch)
tree8703e5ffb053f22d64b1e0692b7a1e0c1a427746 /subframe.c
parent7729b40e6f0aec4d1e4d18999c60734119aa895d (diff)
downloadgpsd-866b24778872a4f1e33789905bf50d1b83fa68d0.tar.gz
Add TOW17 to JSON SUBFRAME
Diffstat (limited to 'subframe.c')
-rw-r--r--subframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subframe.c b/subframe.c
index 29351b42..f0a6e886 100644
--- a/subframe.c
+++ b/subframe.c
@@ -103,7 +103,7 @@ static void subframe_almanac(unsigned int tSVID, uint32_t words[],
almp->omega = ( words[7] & 0xFFFFFF);
almp->omega = uint2int(almp->omega, 24);
almp->d_omega = pow(2.0, -23) * almp->omega;
- almp->M0 = ( words[8] & 0xFFFFFF);
+ almp->M0 = ( words[8] & 0x00FFFFFF);
almp->M0 = uint2int(almp->M0, 24);
almp->d_M0 = pow(2.0,-23) * almp->M0;
almp->af1 = ((words[9] >> 5) & 0x0007FF);