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.
Dev V1.8 Source Code Error
-
- Posts: 1630
- Joined: Wed Jan 19, 2011 9:07 pm
Re: Dev V1.8 Source Code Error
right, there is something useless here.
thank you for pointing this.
thank you for pointing this.