1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

allow 0 for looptime to go back to not-rate-limited loop.

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@183 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop 2012-07-21 07:06:19 +00:00
parent c98113b82c
commit 75adda0597
4 changed files with 2372 additions and 2372 deletions

View file

@ -523,7 +523,7 @@ void loop(void)
}
currentTime = micros();
if (currentTime > loopTime) {
if (cfg.looptime == 0 || currentTime > loopTime) {
loopTime = currentTime + cfg.looptime;
computeIMU();