Prevent CMS from freezing after flash erase
This commit is contained in:
parent
bc736c7754
commit
5694b97dda
|
@ -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…
Reference in New Issue