diff --git a/rp2040-hal/src/spi.rs b/rp2040-hal/src/spi.rs index 0969b1e6b..58425ab20 100644 --- a/rp2040-hal/src/spi.rs +++ b/rp2040-hal/src/spi.rs @@ -248,10 +248,10 @@ impl, const DS: u8> Spi 0x00, FrameFormat::TexasInstrumentsSynchronousSerial => 0x01, FrameFormat::NationalSemiconductorMicrowire => 0x10, @@ -309,7 +309,7 @@ impl, const DS: u8> Spi { self.device.reset_bring_up(resets); self.set_baudrate(peri_frequency, baudrate); - self.set_format(DS, frame_format); + self.set_format(frame_format); self.set_slave(slave); // Always enable DREQ signals -- harmless if DMA is not listening self.device diff --git a/rp235x-hal/src/spi.rs b/rp235x-hal/src/spi.rs index 61cf85f85..6533e7245 100644 --- a/rp235x-hal/src/spi.rs +++ b/rp235x-hal/src/spi.rs @@ -274,10 +274,10 @@ impl, const DS: u8> Spi 0x00, FrameFormat::TexasInstrumentsSynchronousSerial => 0x01, FrameFormat::NationalSemiconductorMicrowire => 0x10, @@ -335,7 +335,7 @@ impl, const DS: u8> Spi { self.device.reset_bring_up(resets); self.set_baudrate(peri_frequency, baudrate); - self.set_format(DS, frame_format); + self.set_format(frame_format); self.set_slave(slave); // Always enable DREQ signals -- harmless if DMA is not listening self.device