diff options
| author | Ulf Lilleengen <[email protected]> | 2025-01-02 13:35:55 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2025-01-02 13:35:55 +0100 |
| commit | 92d67c3ccda06fecf5864a90fe1a74be8495bd36 (patch) | |
| tree | e4b5a36629189513de466ebe63c9ea25cfd2a60a /embassy-nrf/src/time_driver.rs | |
| parent | 422938745a03ae36ffc058ff28011fe15dff2d00 (diff) | |
Relax timestamp check
Diffstat (limited to 'embassy-nrf/src/time_driver.rs')
| -rw-r--r-- | embassy-nrf/src/time_driver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/time_driver.rs b/embassy-nrf/src/time_driver.rs index 61ae96718..03f4c2e2b 100644 --- a/embassy-nrf/src/time_driver.rs +++ b/embassy-nrf/src/time_driver.rs | |||
| @@ -247,7 +247,7 @@ impl RtcDriver { | |||
| 247 | 247 | ||
| 248 | // If we have not passed the timestamp, we can be sure the alarm will be invoked. Otherwise, | 248 | // If we have not passed the timestamp, we can be sure the alarm will be invoked. Otherwise, |
| 249 | // we need to retry setting the alarm. | 249 | // we need to retry setting the alarm. |
| 250 | if self.now() + 3 <= timestamp { | 250 | if self.now() + 2 <= timestamp { |
| 251 | return true; | 251 | return true; |
| 252 | } | 252 | } |
| 253 | } else { | 253 | } else { |
