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:
parent
c98113b82c
commit
75adda0597
4 changed files with 2372 additions and 2372 deletions
2
src/mw.c
2
src/mw.c
|
@ -523,7 +523,7 @@ void loop(void)
|
|||
}
|
||||
|
||||
currentTime = micros();
|
||||
if (currentTime > loopTime) {
|
||||
if (cfg.looptime == 0 || currentTime > loopTime) {
|
||||
loopTime = currentTime + cfg.looptime;
|
||||
|
||||
computeIMU();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue