On Sat, 26 Apr 2014 15:35:49 -0700
peternewman <notifications@github.com> wrote:
> > +/**
> > + * Check the granularity of usleep.
> > + */
> > +void UartDmxThread::CheckTimeGranularity() {
> > +  TimeStamp ts1, ts2;
> > +  Clock clock;
> > +
> > +  clock.CurrentTime(&ts1);
> > +  usleep(1000);
> > +  clock.CurrentTime(&ts2);
> > +
> > +  TimeInterval interval = ts2 - ts1;
> > +  m_granularity = interval.InMilliSeconds() > 3 ? BAD : GOOD;
> 
> Make the 3 a constant.

I have a strong suspicion that it doesn't work properly of the
granularity is declared BAD, but as the Pi is happily GOOD, I can't
easily test this. Better to take it out (it comes from the FTDI driver,
so I assume there is a reason for it)?

Richard