Merge pull request #232 from jacobrosenthal/twim-derive-format

embassy-nrf: twim derive defmt
This commit is contained in:
Dario Nieuwenhuis 2021-06-08 10:39:45 +02:00 committed by GitHub
commit e6bd02d40e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,