Fixed representation of enum to be u8, fixed FourWire bus to set CS pin low during communication, instead of high
This commit is contained in:
parent
b6a52cbf8e
commit
adc7005255
2 changed files with 4 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ pub struct UninitializedW5500<SpiBus: ActiveBus> {
|
|||
bus: SpiBus,
|
||||
}
|
||||
|
||||
#[repr(u8)]
|
||||
pub enum InitializeError<SpiError> {
|
||||
SpiError(SpiError),
|
||||
ChipNotConnected,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue