Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize use of furi::time::Duration #179

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Standardize use of furi::time::Duration #179

merged 2 commits into from
Oct 22, 2024

Conversation

dcoles
Copy link
Collaborator

@dcoles dcoles commented Oct 21, 2024

Most places use furi::time::Duration for things like timeouts, though there are a few place that used core::time::Duration (typically before furi::time::Duration).

I left furi::thread::sleep unchanged but introduced a new sleep_ticks to specifically support furi::time::Duration.

crates/flipperzero/src/furi/thread.rs Show resolved Hide resolved
crates/flipperzero/src/furi/time.rs Outdated Show resolved Hide resolved
Most places use `furi::time::Duration` for things like timeouts,
though there are a few place that used `core::time::Duration`
(typically before `furi::time::Duration`).

I left `furi::thread::sleep` unchanged but introduced a new
`sleep_ticks` to specifically support `furi::time::Duration`.
@dcoles dcoles added this to the v0.13.0 milestone Oct 22, 2024
@dcoles dcoles merged commit 70035ba into main Oct 22, 2024
8 of 9 checks passed
@dcoles dcoles deleted the duration-try-from branch October 22, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants