Skip to content

Commit

Permalink
Merge pull request #32 from Wolfyxon/master
Browse files Browse the repository at this point in the history
Fix UltrasonicSensor::get_distance_inches() description
  • Loading branch information
pixix4 authored Dec 27, 2024
2 parents ca64a5b + 5cb9f5e commit ed7ef80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sensors/ultrasonic_sensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<f32> {
let scale_field = self.in_scale.get();
let scale = match scale_field {
Expand Down

0 comments on commit ed7ef80

Please sign in to comment.