Level fix.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3155 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
mich146@hotmail.com 2011-08-23 05:52:45 +00:00
parent c140113583
commit a545c94b2c
1 changed files with 11 additions and 1 deletions

View File

@ -1148,6 +1148,14 @@ static void mavlink_delay(unsigned long t)
{
unsigned long tstart;
static unsigned long last_1hz, last_3hz, last_10hz, last_50hz;
static bool recursing;
if (recursing) {
delay(t);
return;
}
recursing = true;
tstart = millis();
do {
@ -1178,4 +1186,6 @@ static void mavlink_delay(unsigned long t)
}
delay(1);
} while (millis() - tstart < t);
}
recursing = false;
}