Fw: Bug in GPSISR.C

"Clifford Kelley" <[email protected]> Sat, 16 Apr 2005 16:42:24 -0700
Newsgroups gmane.comp.hardware.gps.opensource
Message-ID <001401c542dd$f0ee93a0$6401a8c0@cliffkelley>
Guys,

Andrew Greenberg found an error in GPSISR.C


On line 320 in GPSISR.C in subroutine ch_pull_in:


if (q_sum < 0) chan[ch].ms_sign=chan[ch].ms_sign || 0x1; // set bit to 1 if
negative

Should be:

if (q_sum < 0) chan[ch].ms_sign=chan[ch].ms_sign | 0x1; // set bit to 1 if
negative


Note the "test" || versus the operator |.


Best regards,

Cliff