From 4f0445cb5de68a82d26ff981a0f3d0b72b0cd418 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 8 Nov 2018 19:04:33 +0100 Subject: Add invalid input data threshold --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 5050ece..adbd128 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,7 +63,9 @@ use core::marker::PhantomData; #[derive(Debug)] pub enum Error { /// I²C/SPI bus error - Comm(E) + Comm(E), + /// Invalid input data provided + InvalidInputData } const DEVICE_BASE_ADDRESS : u8 = 0b100_1000; -- cgit v1.2.3-54-g00ecf