From ed105ef418931cb643675bd8c586e7ea283760a0 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Mon, 30 Aug 2021 09:37:00 +0200 Subject: [PATCH] Remove Underrun error variant --- src/errors.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index fbc19caa..45f1d326 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -28,8 +28,6 @@ pub mod i2c { NoAcknowledge, /// The peripheral receive buffer was overrun Overrun, - /// The peripheral send buffer ran out of data - Underrun, /// A different error occurred. The original error may contain more information. Other, } @@ -50,7 +48,6 @@ pub mod i2c { ), Self::NoAcknowledge => write!(f, "A bus operation was not acknowledged"), Self::Overrun => write!(f, "The peripheral receive buffer was overrun"), - Self::Underrun => write!(f, "The peripheral send buffer ran out of data"), Self::Other => write!( f, "A different error occurred. The original error may contain more information"