From b690c1634bd65982f63fd2a070fc436818149214 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 30 Nov 2017 09:41:34 -0800 Subject: [PATCH] updated distance detection --- .../_locales/ultrasonic-sensor-jsdoc-strings.json | 2 +- libs/ultrasonic-sensor/ultrasonic.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ultrasonic-sensor/_locales/ultrasonic-sensor-jsdoc-strings.json b/libs/ultrasonic-sensor/_locales/ultrasonic-sensor-jsdoc-strings.json index 3bb5fc2a..9aa4671b 100644 --- a/libs/ultrasonic-sensor/_locales/ultrasonic-sensor-jsdoc-strings.json +++ b/libs/ultrasonic-sensor/_locales/ultrasonic-sensor-jsdoc-strings.json @@ -1,5 +1,5 @@ { - "sensors.UltraSonicSensor.distance": "Gets the distance from the sonar in millimeters", + "sensors.UltraSonicSensor.distance": "Gets the distance from the sonar in centimeters", "sensors.UltraSonicSensor.onEvent": "Registers code to run when the given color is close", "sensors.UltraSonicSensor.onEvent|param|handler": "the code to run when detected", "sensors.UltraSonicSensor.waitUntil": "Waits for the event to occur" diff --git a/libs/ultrasonic-sensor/ultrasonic.ts b/libs/ultrasonic-sensor/ultrasonic.ts index e7d8826d..ef6628af 100644 --- a/libs/ultrasonic-sensor/ultrasonic.ts +++ b/libs/ultrasonic-sensor/ultrasonic.ts @@ -67,7 +67,7 @@ namespace sensors { } /** - * Gets the distance from the sonar in millimeters + * Gets the distance from the sonar in centimeters * @param sensor the ultrasonic sensor port */ //% help=input/ultrasonic/distance