docs/library/machine: Remove conditional docs for wake_reason function.
And instead list its availability explicitly.
This commit is contained in:
parent
4cc65e22d4
commit
163cc66a0b
|
@ -74,12 +74,12 @@ Power related functions
|
||||||
to know that we are coming from `machine.DEEPSLEEP`. For wake up to actually happen,
|
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.
|
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
|
Miscellaneous functions
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue