Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SPI mode fault documentation
Browse files Browse the repository at this point in the history
eldruin committed Sep 17, 2021
1 parent 209c3ed commit 3badfec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spi/mod.rs
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ pub trait Error: core::fmt::Debug {
pub enum ErrorKind {
/// The peripheral receive buffer was overrun
Overrun,
/// Multiple devices on the SPI bus are trying across each other, e.g. in a multi-master setup
/// Multiple devices on the SPI bus are trying to drive the slave select pin, e.g. in a multi-master setup
ModeFault,
/// CRC does not match the received data
Crc,
@@ -96,7 +96,7 @@ impl core::fmt::Display for ErrorKind {
Self::Overrun => write!(f, "The peripheral receive buffer was overrun"),
Self::ModeFault => write!(
f,
"Multiple devices on the SPI bus are trying across each other"
"Multiple devices on the SPI bus are trying to drive the slave select pin"
),
Self::Crc => write!(f, "CRC does not match the received data"),
Self::FrameFormat => write!(

0 comments on commit 3badfec

Please sign in to comment.