From d32378e6c41a81ea73e816e89108644d59bb5dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 4 Feb 2021 12:48:58 +0100 Subject: [PATCH] lockin-external: ignore timestamps related to capture overflows --- src/bin/lockin-external.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lockin-external.rs b/src/bin/lockin-external.rs index ae25d15..a36e5d6 100644 --- a/src/bin/lockin-external.rs +++ b/src/bin/lockin-external.rs @@ -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,