Skip to content

Commit

Permalink
Fixing docs in SPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-summers committed Mar 11, 2024
1 parent 735b635 commit 6c0cbad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion embedded-hal-bus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async = ["dep:embedded-hal-async"]
defmt-03 = ["dep:defmt-03", "embedded-hal/defmt-03", "embedded-hal-async?/defmt-03"]

[dependencies]
embedded-hal = { version = "1.0.0", path = "../embedded-hal" }
embedded-hal = { version = "1.0.0" }
embedded-hal-async = { version = "1.0.0", path = "../embedded-hal-async", optional = true }
critical-section = { version = "1.0" }
defmt-03 = { package = "defmt", version = "0.3", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions embedded-hal-bus/src/spi/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ pub struct AtomicDevice<'a, BUS, CS, D> {
}

#[derive(Debug, Copy, Clone)]
/// Wrapper type for errors originating from the atomically-checked I2C bus manager.
/// Wrapper type for errors originating from the atomically-checked SPI bus manager.
pub enum AtomicError<T: Error> {
/// This error is returned if the I2C bus was already in use when an operation was attempted,
/// This error is returned if the SPI bus was already in use when an operation was attempted,
/// which indicates that the driver requirements are not being met with regard to
/// synchronization.
Busy,

/// An I2C-related error occurred, and the internal error should be inspected.
/// An SPI-related error occurred, and the internal error should be inspected.
Other(T),
}

Expand Down

0 comments on commit 6c0cbad

Please sign in to comment.