Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Split "set rtt to blocking-mode" into function #257

Merged
merged 5 commits into from
Sep 14, 2021
Merged

Conversation

Urhengulas
Copy link
Member

Firstly this shortens the fn start_program,
secondly it makes the "what" of this block of code more apparent.

Firstly this shortens the `fn start_program`,
secondly it makes the "what" of this block of code more apparent.
src/main.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
@Urhengulas
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 14, 2021

Build succeeded:

@bors bors bot merged commit 0879ce5 into main Sep 14, 2021
@bors bors bot deleted the doc-rtt-blocking-mode branch September 14, 2021 20:51
bors bot added a commit that referenced this pull request Sep 15, 2021
263: set blocking mode to 0b10 (BLOCK_IF_FULL) r=jonas-schievink a=japaric

the previous version (after PR #257) was setting the blocking mode (first 2 bits of the flags field) to 0b11 (0b01
is what defmt-rtt uses by default) which is not a valid mode

Co-authored-by: Jorge Aparicio <[email protected]>
bors bot added a commit to knurling-rs/defmt that referenced this pull request Sep 15, 2021
579: defmt-rtt: fix check for blocking RTT r=japaric a=jonas-schievink

This check wasn't testing correctly whether the `BLOCK_IF_FULL` bit was set, leading to knurling-rs/probe-run#257 breaking probe-run.

Co-authored-by: Jonas Schievink <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants