1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

Fixed coding error on line 317 .. changed while (xxx & xxxx) to while (xxx && xxxx)

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2296 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2010-12-27 09:48:11 +00:00 committed by pip
parent e7e0f6740b
commit 26650724e4

View File

@ -314,7 +314,8 @@ void ins_init_algorithm()
/* Ensure we get mag data in a timely manner */
uint16_t fail_count = 50; // 50 at 200 Hz is up to 0.25 sec
while(using_mags && !mag_data.updated & fail_count--) {
while (using_mags && !mag_data.updated && fail_count--)
{
get_accel_gyro_data();
AhrsPoll();
}