From 92d67c3ccda06fecf5864a90fe1a74be8495bd36 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Thu, 2 Jan 2025 13:35:55 +0100 Subject: [PATCH] Relax timestamp check --- embassy-nrf/src/time_driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-nrf/src/time_driver.rs b/embassy-nrf/src/time_driver.rs index 61ae96718e..03f4c2e2bd 100644 --- a/embassy-nrf/src/time_driver.rs +++ b/embassy-nrf/src/time_driver.rs @@ -247,7 +247,7 @@ impl RtcDriver { // If we have not passed the timestamp, we can be sure the alarm will be invoked. Otherwise, // we need to retry setting the alarm. - if self.now() + 3 <= timestamp { + if self.now() + 2 <= timestamp { return true; } } else {