Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
playfulFence committed Dec 19, 2024
1 parent f655e4b commit 0b23469
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion esp-hal/src/i2c/master/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ impl core::error::Error for ConfigError {}

impl core::fmt::Display for ConfigError {
fn fmt(&self, _f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
Ok(())
match self {
ConfigError::InvalidFrequency => write!(
f,
"Provided bus frequency is invalid for the current configuration"
),
}
}
}

Expand Down

0 comments on commit 0b23469

Please sign in to comment.