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:
Jonah Dahlquist 2019-10-23 22:40:13 -05:00 committed by Jonah Dahlquist
commit adc7005255
2 changed files with 4 additions and 2 deletions

View file

@ -12,6 +12,7 @@ pub struct UninitializedW5500<SpiBus: ActiveBus> {
bus: SpiBus,
}
#[repr(u8)]
pub enum InitializeError<SpiError> {
SpiError(SpiError),
ChipNotConnected,