From fd6fe2ceada168e33a01cbdf9503f180cb30c58b Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Tue, 20 Nov 2018 19:21:50 +0100 Subject: Add function to read last measurement in continuous mode --- 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 4382e61..b825546 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -203,7 +203,9 @@ pub enum Error { /// I²C/SPI bus error Comm(E), /// Invalid input data provided - InvalidInputData + InvalidInputData, + /// Continuous measurement was not started + NotStarted, } const DEVICE_BASE_ADDRESS : u8 = 0b100_1000; -- cgit v1.2.3-54-g00ecf