gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] ✘RTCM3.2 fixed


From: Gary E. Miller
Subject: [gpsd-dev] ✘RTCM3.2 fixed
Date: Wed, 20 Apr 2016 16:09:32 -0700

Yo All!

git head is updated with a fix for RTCM3.2  We never saw it before
because gpsd had almost no RTCM3 test cases until lately.

RTCM3 is a stream of bytes not chars.  Yet the array was defined as
chars.

This was causing problems in sign extension.

On amd64/Gentoo sign was extended:

(unsigned int)(char 0x80) became: 0xfffffff80

But on Pi2/Wheezy the same thing became: 0x80.

The obvious fix was simply to redefine RTCM3 as an array of unsigned
chars.  As god intended.  Still, the difference in sign extension is
odd.

All regression tests now pass for me on pi2/wheey and amd64/gentoo.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

Attachment: pgp2T00ltEW_6.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]