summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/machine.rst
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-07-18 16:23:34 +1000
committerDamien George <damien.p.george@gmail.com>2018-07-18 16:23:34 +1000
commit163cc66a0b4b8f305d1f9e11625cee4b5d2f75e2 (patch)
tree066f17e2df8d6629335c638b9d8094f04903978e /docs/library/machine.rst
parent4cc65e22d4464917d995dc89023ca8883c7dc6b2 (diff)
downloadmicropython-163cc66a0b4b8f305d1f9e11625cee4b5d2f75e2.tar.gz
micropython-163cc66a0b4b8f305d1f9e11625cee4b5d2f75e2.zip
docs/library/machine: Remove conditional docs for wake_reason function.
And instead list its availability explicitly.
Diffstat (limited to 'docs/library/machine.rst')
-rw-r--r--docs/library/machine.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/library/machine.rst b/docs/library/machine.rst
index 087f19cc6c..c5ff87fa9f 100644
--- a/docs/library/machine.rst
+++ b/docs/library/machine.rst
@@ -74,11 +74,11 @@ Power related functions
to know that we are coming from `machine.DEEPSLEEP`. For wake up to actually happen,
wake sources should be configured first, like `Pin` change or `RTC` timeout.
-.. only:: port_wipy
+.. function:: wake_reason()
- .. function:: wake_reason()
+ Get the wake reason. See :ref:`constants <machine_constants>` for the possible return values.
- Get the wake reason. See :ref:`constants <machine_constants>` for the possible return values.
+ Availability: ESP32, WiPy.
Miscellaneous functions
-----------------------