From 1be5beb54e818cff146288a5da421d828d2168ac Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Mon, 11 Nov 2019 15:22:41 +0100 Subject: [PATCH] doc/ev3devices/AnalogSensor: update type check We no longer have to tell people to reboot the brick after changing the port mode. This is all done automatically now. --- pybricks/ev3devices.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pybricks/ev3devices.py b/pybricks/ev3devices.py index 51dac84..2a06883 100644 --- a/pybricks/ev3devices.py +++ b/pybricks/ev3devices.py @@ -302,17 +302,13 @@ class AnalogSensor(): Arguments: port (Port): Port to which the sensor is connected. - check_type(bool): Check if the sensor is detected as an analog + verify_type(bool): Verify that the sensor is detected as an analog sensor (*Default*: ``True``). - If you choose ``check_type=False``, the EV3 will treat it as + If you choose ``verify_type=False``, the EV3 will treat it as an analog sensor even if no such sensor is detected. This is useful if you have a (custom) analog sensor that is not detected automatically. - - **NOTE**: Setting ``check_type=False`` keeps the sensor port in - analog mode even after your program ends. To use a different - sensor on this port, you must first reboot the EV3. """ pass