@@ -843,15 +843,16 @@ def wait_until(self, s, timeout=None):
843843 Blocks until ``s`` is in ``self.state``. The condition is checked when
844844 there is an I/O event related to the ``state`` attribute. Exits early
845845 when ``timeout`` (in milliseconds) is reached.
846-
847- **Warning:** In ev3dev kernel release cycles 16 and earlier, there is
848- a bug which causes the ``state`` attribute to include ``stalled``
849- immediately after starting the motor even if it is not actually being
850- prevented from rotating. As a workaround, we recommend sleeping your
851- code for around 100ms after starting a motor if you are going to use
852- this method to wait for it to be ``stalled``. A fix for this has not
853- yet been released.
854-
846+
847+ .. warning::
848+ In ev3dev kernel release cycles 16 and earlier, there is a bug
849+ which causes the ``state`` attribute to include ``stalled``
850+ immediately after starting the motor even if it is not actually
851+ being prevented from rotating. As a workaround, we recommend
852+ sleeping your code for around 100ms after starting a motor if you
853+ are going to use this method to wait for it to be ``stalled``. A
854+ fix for this has not yet been released.
855+
855856 Returns ``True`` if the condition is met, and ``False`` if the timeout
856857 is reached.
857858
@@ -866,15 +867,16 @@ def wait_while(self, s, timeout=None):
866867 Blocks until ``s`` is not in ``self.state``. The condition is checked
867868 when there is an I/O event related to the ``state`` attribute. Exits
868869 early when ``timeout`` (in milliseconds) is reached.
869-
870- **Warning:** In ev3dev kernel release cycles 16 and earlier, there is
871- a bug which causes the ``state`` attribute to include ``stalled``
872- immediately after starting the motor even if it is not actually being
873- prevented from rotating. As a workaround, we recommend sleeping your
874- code for around 100ms after starting a motor if you are going to use
875- this method to wait for it to be ``stalled``. A fix for this has not
876- yet been released.
877-
870+
871+ .. warning::
872+ In ev3dev kernel release cycles 16 and earlier, there is a bug
873+ which causes the ``state`` attribute to include ``stalled``
874+ immediately after starting the motor even if it is not actually
875+ being prevented from rotating. As a workaround, we recommend
876+ sleeping your code for around 100ms after starting a motor if you
877+ are going to use this method to wait for it to be ``stalled``. A
878+ fix for this has not yet been released.
879+
878880 Returns ``True`` if the condition is met, and ``False`` if the timeout
879881 is reached.
880882
0 commit comments