gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] OS X status?


From: Eric S. Raymond
Subject: Re: [gpsd-dev] OS X status?
Date: Tue, 27 Jan 2015 15:54:43 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

Greg Troxel <address@hidden>:
> 
> "Eric S. Raymond" <address@hidden> writes:
> 
> > Greg Troxel <address@hidden>:
> >> 
> >> I am seeing WRITE_PAD reported as 0 when I set 0.01.   I am seeing a
> >> cast to int in gpsfake before the call to sleep; this does not make
> >> sense.  but I don't see how self.delay is getting truncated; that's just
> >> pure pythong and not impacted by any OS behavior.
> >> 
> >> See line 257 of fake.py, FakeGPS.feed().
> >
> > That truncation only applies if the line contains "%Delay" followed by a
> > delay-time literal.
> 
> OK, I see that now.
> 
> But when using WRITE_PAD = 0.01, I see in the output:
> 
> sys darwin platform Darwin-13.4.0-x86_64-i386-64bit: WRITE_PAD = 0 
> CLOSE_DELAY = 10.00
> 
> and I don't see where it's getting truncated.
> (BTW, 0/10 does not work!)

Duh.  I typoed - %.f where it needed to be %.2f.  Now fixed.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

Attachment: signature.asc
Description: Digital signature


reply via email to

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