lockin-external: ignore timestamps related to capture overflows

This commit is contained in:
Robert Jördens 2021-02-04 12:48:58 +01:00
parent f47ee38d31
commit d32378e6c4

View File

@ -113,7 +113,7 @@ const APP: () = {
.resources
.timestamper
.latest_timestamp()
.unwrap_or_else(|t| t) // Ignore timer capture overflows.
.unwrap_or(None) // Ignore data from timer capture overflows.
.map(|t| t as i32);
let (pll_phase, pll_frequency) = c.resources.pll.update(
timestamp,