From 950120f4a2d0199a63b59b523f1a1638e20c4f13 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sat, 17 Nov 2018 14:21:12 +0100 Subject: Rename threshold methods --- src/devices/features/tier2.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/devices') diff --git a/src/devices/features/tier2.rs b/src/devices/features/tier2.rs index 067139a..2a35f7c 100644 --- a/src/devices/features/tier2.rs +++ b/src/devices/features/tier2.rs @@ -31,14 +31,14 @@ where Ok(()) } - /// Set comparator lower threshold - pub fn set_low_threshold(&mut self, value: i16) -> Result<(), Error> { + /// Set raw comparator lower threshold + pub fn set_low_threshold_raw(&mut self, value: i16) -> Result<(), Error> { let register_value = CONV::convert_threshold(value)?; self.iface.write_register(Register::LOW_TH, register_value) } - /// Set comparator upper threshold - pub fn set_high_threshold(&mut self, value: i16) -> Result<(), Error> { + /// Set raw comparator upper threshold + pub fn set_high_threshold_raw(&mut self, value: i16) -> Result<(), Error> { let register_value = CONV::convert_threshold(value)?; self.iface.write_register(Register::HIGH_TH, register_value) } -- cgit v1.2.3-54-g00ecf