embassy-nrf: twim derive defmt

This commit is contained in:
Jacob Rosenthal 2021-06-07 19:07:53 -07:00
parent de5b9bea14
commit e9bd8428e3

View File

@ -690,6 +690,7 @@ impl<'a, T: Instance> embedded_hal::blocking::i2c::WriteRead for Twim<'a, T> {
}
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum Error {
TxBufferTooLong,
RxBufferTooLong,