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

mcu-util: blocking call to can-rs in async #85

Merged
merged 10 commits into from
May 7, 2024

Conversation

fouge
Copy link
Collaborator

@fouge fouge commented May 2, 2024

and some tiny refacto

@fouge fouge requested a review from TheButlah May 2, 2024 13:00
@fouge fouge force-pushed the fouge/mcu-util-blocking-call branch from b4c2eb2 to fc65538 Compare May 2, 2024 13:13
mcu-util/src/messaging/can/canfd.rs Outdated Show resolved Hide resolved
mcu-util/src/messaging/can/canfd.rs Outdated Show resolved Hide resolved
mcu-util/src/messaging/can/isotp.rs Outdated Show resolved Hide resolved
fouge and others added 6 commits May 3, 2024 21:57
* mcu-util: serial can only be obtained if orb-ui not running

make it optional
still unused anyway

* mcu-util: better errors (and printing)

unwrap all errors
@fouge fouge changed the title mcu-util: refactor blocking call to can-rs in async mcu-util: blocking call to can-rs in async May 6, 2024
@fouge fouge changed the title mcu-util: blocking call to can-rs in async mcu-util: handle blocking call to can-rs in async May 6, 2024
fouge added 2 commits May 6, 2024 17:21
* mcu-util: better logs

use color-eyre
use RUST_LOG env variable when given
fallback on INFO log level

* mcu-util: remove some allow(dead_code)
give ownership to blocking thread
@fouge fouge changed the title mcu-util: handle blocking call to can-rs in async mcu-util: handle blocking call to can-rs in async May 7, 2024
@fouge fouge changed the title mcu-util: handle blocking call to can-rs in async mcu-util: blocking call to can-rs in async May 7, 2024
@fouge fouge requested a review from TheButlah May 7, 2024 07:40
@TheButlah TheButlah merged commit c79a915 into main May 7, 2024
9 checks passed
@TheButlah TheButlah deleted the fouge/mcu-util-blocking-call branch May 7, 2024 14:20
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