AP_NavEKF2: added const (review request)

This commit is contained in:
Andrew Tridgell 2020-11-08 18:37:42 +11:00
parent 7a34ec4458
commit 7d7031d3d7
1 changed files with 1 additions and 1 deletions

View File

@ -832,7 +832,7 @@ void NavEKF2::UpdateFilter(void)
void NavEKF2::checkLaneSwitch(void)
{
AP::dal().log_event2(AP_DAL::Event2::checkLaneSwitch);
uint32_t now = AP::dal().millis();
const uint32_t now = AP::dal().millis();
if (lastLaneSwitch_ms != 0 && now - lastLaneSwitch_ms < 5000) {
// don't switch twice in 5 seconds
return;