Dev V1.8 Source Code Error

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
mr.rc-cam
Posts: 457
Joined: Wed Jul 27, 2011 11:36 pm

Dev V1.8 Source Code Error

Post by mr.rc-cam »

In case this has not been noticed, V1.8 / file MultiWii_dev20110710.pde:

Line 319 is duplicated at line 330. That is to say, there are two IF/ELSE statements that are at the same code level. The second one will never execute.

if (rcData[YAW] < MINCHECK && rcData[PITCH] < MINCHECK && armed == 0) {
if (rcDelayCommand == 20) calibratingG=400;
}

Which appears again as:

}else if (rcData[YAW] < MINCHECK && rcData[PITCH] < MINCHECK && armed == 0) {
if (rcDelayCommand == 20) calibratingG=400;
}

As written, the double IF's won't cause a problem. But I thought that I should report it in case the source code author intended for one of the IF statements to have a different variation of the conditions.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: Dev V1.8 Source Code Error

Post by Alexinparis »

right, there is something useless here.
thank you for pointing this.

Post Reply