summaryrefslogtreecommitdiffstatshomepage
path: root/docs/wipy/quickref.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/wipy/quickref.rst')
-rw-r--r--docs/wipy/quickref.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/wipy/quickref.rst b/docs/wipy/quickref.rst
index 3dc12a111e..2acbaa5413 100644
--- a/docs/wipy/quickref.rst
+++ b/docs/wipy/quickref.rst
@@ -160,7 +160,7 @@ See :ref:`pyb.RTC <pyb.RTC>` and ``pyb.Sleep``. ::
rtc_obj.callback(value=30000, handler=some_handler)
# create a RTC alarm that expires in 30s
- rtc.callback(value=30000, handler=some_handler, wakes=Sleep.SUSPENDED)
+ rtc.callback(value=30000, handler=some_handler, wake_from=Sleep.SUSPENDED)
# go into suspended mode waiting for the RTC alarm to expire and wake us up
Sleep.suspend()
@@ -195,7 +195,7 @@ See :ref:`network.WLAN <network.WLAN>` and ``pyb.Sleep``. ::
pass
print(wifi.ifconfig())
# enable wake on WLAN
- wifi.callback(wakes=Sleep.SUSPENDED)
+ wifi.callback(wake_from=Sleep.SUSPENDED)
# go to sleep
Sleep.suspend()
# now, connect to the FTP or the Telnet server and the WiPy will wake-up