small bug in nav.c

News, Setup, Compiling, Flashing, Development

small bug in nav.c

Postby Shogun » Mon May 19, 2014 6:07 pm

Around line 477 r384
Code: Select all
            // next leg
            if (++leg < NAV_MAX_MISSION_LEGS && curLeg->type > 0) {
                curLeg = navLoadLeg(leg);
            }

The succeeding leg type shall be tested, not the current, correct is
Code: Select all
if (++leg < NAV_MAX_MISSION_LEGS && navData.missionLegs[leg].type > 0) {
Shogun
 
Posts: 46
Joined: Tue Aug 14, 2012 10:53 am
Location: Aachen, Germany

Re: small bug in nav.c

Postby bn999 » Mon May 19, 2014 6:20 pm

I do believe you are right. Good catch. I will update the repo.
bn999
 
Posts: 1559
Joined: Thu Jun 21, 2012 11:40 pm


Return to AQ Firmware

Who is online

Users browsing this forum: No registered users and 4 guests

cron