feat: derive defmt::Format for more structs and errors
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
This commit is contained in:
parent
1b2ba0bfab
commit
c3f79c96ed
12 changed files with 40 additions and 6 deletions
|
|
@ -12,6 +12,8 @@ const FIXED_DATA_LENGTH_MODE_2: u8 = 0b000000_10;
|
|||
const FIXED_DATA_LENGTH_MODE_4: u8 = 0b000000_11;
|
||||
|
||||
// TODO This name is not ideal, should be renamed to FDM
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub struct ThreeWire<Spi: Transfer<u8> + Write<u8>> {
|
||||
spi: Spi,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue