mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Merge pull request #3173 from jflyper/bfdev-fix-cms-freeze-after-flash-erase
Prevent CMS from freezing after flash erase
This commit is contained in:
commit
01cc28acf4
1 changed files with 5 additions and 1 deletions
|
@ -990,7 +990,11 @@ void cmsUpdate(uint32_t currentTimeUs)
|
||||||
lastCmsHeartBeatMs = currentTimeMs;
|
lastCmsHeartBeatMs = currentTimeMs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lastCalledMs = currentTimeMs;
|
|
||||||
|
// Some key (command), notably flash erase, takes too long to use the
|
||||||
|
// currentTimeMs to be used as lastCalledMs (freezes CMS for a minute or so
|
||||||
|
// if used).
|
||||||
|
lastCalledMs = millis();
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmsHandler(timeUs_t currentTimeUs)
|
void cmsHandler(timeUs_t currentTimeUs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue