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:
parent
e7e0f6740b
commit
26650724e4
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user