Skip to content

Commit

Permalink
defmt-rtt: Rename Channel to Self in impl Channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Feb 2, 2022
1 parent fc4d6b0 commit 28e8aba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/defmt-rtt/src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ impl Channel {
// the host-connection-status is only modified after RAM initialization while the device is
// halted, so we only need to check it once before the write-loop
let write = match self.host_is_connected() {
true => Channel::blocking_write,
false => Channel::nonblocking_write,
true => Self::blocking_write,
false => Self::nonblocking_write,
};

while !bytes.is_empty() {
Expand Down

0 comments on commit 28e8aba

Please sign in to comment.