Update drv_pwm.c

Detection & fix for the "8 channels in 18ms Frsky problem" see http://diydrones.com/profiles/blogs/why-frsky-cppm-signal-is-so-disappointing . Note: failsafeCheck not altered!
left overs of original code.
coding styles doc says otherwise.
that's usually authoritative reference.
On Jul 31, 2014 5:54 PM, "Crashpilot1000" <notifications@github.com> wrote:

> In src/drv_pwm.c:
>
> >
> > -    last = now;
> > -    now = capture;
> > -    diff = now - last;
> > -
> > -    if (diff > 2700) { // Per http://www.rcgroups.com/forums/showpost.php?p=21996147&postcount=3960 "So, if you use 2.5ms or higher as being the reset for the PPM stream start, you will be fine. I use 2.7ms just to be safe."
> > +    if (sync) {
> > +        if(!frsky_18patch) {
> > +            if(frametime < 18300 && chan == 8) {
> > +                frsky_errcnt++;
> > +            } else {
> > +                frsky_errcnt = 0;
> > +            }
>
> I thought BF wants it that way because here:
> https://github.com/multiwii/baseflight/blob/master/src/mw.c#L108
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/multiwii/baseflight/pull/153/files#r15631816>.
>