-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use warning directive for warning clauses
- Loading branch information
Showing
1 changed file
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -843,15 +843,16 @@ def wait_until(self, s, timeout=None): | |
Blocks until ``s`` is in ``self.state``. The condition is checked when | ||
there is an I/O event related to the ``state`` attribute. Exits early | ||
when ``timeout`` (in milliseconds) is reached. | ||
**Warning:** In ev3dev kernel release cycles 16 and earlier, there is | ||
a bug which causes the ``state`` attribute to include ``stalled`` | ||
immediately after starting the motor even if it is not actually being | ||
prevented from rotating. As a workaround, we recommend sleeping your | ||
code for around 100ms after starting a motor if you are going to use | ||
this method to wait for it to be ``stalled``. A fix for this has not | ||
yet been released. | ||
.. warning:: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ddemidov
Author
Member
|
||
In ev3dev kernel release cycles 16 and earlier, there is a bug | ||
which causes the ``state`` attribute to include ``stalled`` | ||
immediately after starting the motor even if it is not actually | ||
being prevented from rotating. As a workaround, we recommend | ||
sleeping your code for around 100ms after starting a motor if you | ||
are going to use this method to wait for it to be ``stalled``. A | ||
fix for this has not yet been released. | ||
Returns ``True`` if the condition is met, and ``False`` if the timeout | ||
is reached. | ||
|
@@ -866,15 +867,16 @@ def wait_while(self, s, timeout=None): | |
Blocks until ``s`` is not in ``self.state``. The condition is checked | ||
when there is an I/O event related to the ``state`` attribute. Exits | ||
early when ``timeout`` (in milliseconds) is reached. | ||
**Warning:** In ev3dev kernel release cycles 16 and earlier, there is | ||
a bug which causes the ``state`` attribute to include ``stalled`` | ||
immediately after starting the motor even if it is not actually being | ||
prevented from rotating. As a workaround, we recommend sleeping your | ||
code for around 100ms after starting a motor if you are going to use | ||
this method to wait for it to be ``stalled``. A fix for this has not | ||
yet been released. | ||
.. warning:: | ||
In ev3dev kernel release cycles 16 and earlier, there is a bug | ||
which causes the ``state`` attribute to include ``stalled`` | ||
immediately after starting the motor even if it is not actually | ||
being prevented from rotating. As a workaround, we recommend | ||
sleeping your code for around 100ms after starting a motor if you | ||
are going to use this method to wait for it to be ``stalled``. A | ||
fix for this has not yet been released. | ||
Returns ``True`` if the condition is met, and ``False`` if the timeout | ||
is reached. | ||
|
😍