Skip to content

Commit

Permalink
dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
playfulFence committed Dec 18, 2024
1 parent 39c6c3e commit 8ba91ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/i2c/master/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ fn configure_clock(
w.scl_wait_high_period().bits(
scl_wait_high_period
.try_into()
.map_err(|_| Error::InvalidFrequency)?,
.map_err(|_| ConfigError::InvalidFrequency)?,
);
w.scl_high_period().bits(scl_high_period as u16)
});
Expand Down Expand Up @@ -931,7 +931,7 @@ fn configure_clock(
if let Some(timeout_value) = timeout {
register_block.to().write(|w| w.time_out().bits(timeout_value));
} else {
return Err(Error::InvalidTimeout);
return Err(ConfigError::InvalidTimeout);
}
} else {
register_block
Expand Down

0 comments on commit 8ba91ed

Please sign in to comment.