From 5cb9f5e45dac32d413ec9cb007e35a327690f127 Mon Sep 17 00:00:00 2001 From: Wolfyxon Date: Wed, 18 Dec 2024 12:18:07 +0100 Subject: [PATCH] Fixed get_distance_inches() description --- src/sensors/ultrasonic_sensor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sensors/ultrasonic_sensor.rs b/src/sensors/ultrasonic_sensor.rs index 748f156..5a82daf 100644 --- a/src/sensors/ultrasonic_sensor.rs +++ b/src/sensors/ultrasonic_sensor.rs @@ -100,7 +100,7 @@ impl UltrasonicSensor { Ok((self.get_value0()? as f32) * scale) } - /// Measurement of the distance detected by the sensor, in centimeters. + /// Measurement of the distance detected by the sensor, in inches. pub fn get_distance_inches(&self) -> Ev3Result { let scale_field = self.in_scale.get(); let scale = match scale_field {