diff --git a/src/device_impl.rs b/src/device_impl.rs index afc3ffd..3574699 100644 --- a/src/device_impl.rs +++ b/src/device_impl.rs @@ -194,7 +194,12 @@ where was_too_low: (config & BitFlags::FL) != 0, }) } +} +impl Opt300x +where + I2C: i2c::Write, +{ /// Set the fault count /// /// Note that the conversion ready flag is cleared automatically @@ -329,7 +334,12 @@ where pub fn disable_end_of_conversion_mode(&mut self) -> Result<(), Error> { self.write_register(Register::LOW_LIMIT, self.low_limit) } +} +impl Opt300x +where + I2C: i2c::WriteRead, +{ /// Read the manifacturer ID pub fn get_manufacturer_id(&mut self) -> Result> { self.read_register(Register::MANUFACTURER_ID)