Skip to content

Commit 3badfec

Browse files
committed
Improve SPI mode fault documentation
1 parent 209c3ed commit 3badfec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spi/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub trait Error: core::fmt::Debug {
7474
pub enum ErrorKind {
7575
/// The peripheral receive buffer was overrun
7676
Overrun,
77-
/// Multiple devices on the SPI bus are trying across each other, e.g. in a multi-master setup
77+
/// Multiple devices on the SPI bus are trying to drive the slave select pin, e.g. in a multi-master setup
7878
ModeFault,
7979
/// CRC does not match the received data
8080
Crc,
@@ -96,7 +96,7 @@ impl core::fmt::Display for ErrorKind {
9696
Self::Overrun => write!(f, "The peripheral receive buffer was overrun"),
9797
Self::ModeFault => write!(
9898
f,
99-
"Multiple devices on the SPI bus are trying across each other"
99+
"Multiple devices on the SPI bus are trying to drive the slave select pin"
100100
),
101101
Self::Crc => write!(f, "CRC does not match the received data"),
102102
Self::FrameFormat => write!(

0 commit comments

Comments
 (0)