From e9bd8428e32a3ece086450bc7b46b81e9b352b4f Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Mon, 7 Jun 2021 19:07:53 -0700 Subject: [PATCH] embassy-nrf: twim derive defmt --- embassy-nrf/src/twim.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-nrf/src/twim.rs b/embassy-nrf/src/twim.rs index 5f3c5157..b533c69c 100644 --- a/embassy-nrf/src/twim.rs +++ b/embassy-nrf/src/twim.rs @@ -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,