Skip to content

Commit 9b3731c

Browse files
committed
Remove watchdog.deinit() for 10.0.0.
1 parent ed2ae0d commit 9b3731c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

shared-bindings/watchdog/WatchDogTimer.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,6 @@ static mp_obj_t watchdog_watchdogtimer_feed(mp_obj_t self_in) {
4848
}
4949
static MP_DEFINE_CONST_FUN_OBJ_1(watchdog_watchdogtimer_feed_obj, watchdog_watchdogtimer_feed);
5050

51-
//| def deinit(self) -> None:
52-
//| """Stop the watchdog timer.
53-
//|
54-
//| :raises RuntimeError: if the watchdog timer cannot be disabled on this platform.
55-
//|
56-
//| .. note:: This is deprecated in ``9.0.0`` and will be removed in ``10.0.0``.
57-
//| Set watchdog `mode` to `None` instead.
58-
//|
59-
//| """
60-
//| ...
61-
//|
62-
static mp_obj_t watchdog_watchdogtimer_deinit(mp_obj_t self_in) {
63-
watchdog_watchdogtimer_obj_t *self = MP_OBJ_TO_PTR(self_in);
64-
common_hal_watchdog_deinit(self);
65-
return mp_const_none;
66-
}
67-
static MP_DEFINE_CONST_FUN_OBJ_1(watchdog_watchdogtimer_deinit_obj, watchdog_watchdogtimer_deinit);
68-
6951
//| timeout: float
7052
//| """The maximum number of seconds that can elapse between calls
7153
//| to `feed()`. Setting the timeout will also feed the watchdog."""
@@ -126,7 +108,6 @@ MP_PROPERTY_GETSET(watchdog_watchdogtimer_mode_obj,
126108

127109
static const mp_rom_map_elem_t watchdog_watchdogtimer_locals_dict_table[] = {
128110
{ MP_ROM_QSTR(MP_QSTR_feed), MP_ROM_PTR(&watchdog_watchdogtimer_feed_obj) },
129-
{ MP_ROM_QSTR(MP_QSTR_deinit), MP_ROM_PTR(&watchdog_watchdogtimer_deinit_obj) },
130111
{ MP_ROM_QSTR(MP_QSTR_timeout), MP_ROM_PTR(&watchdog_watchdogtimer_timeout_obj) },
131112
{ MP_ROM_QSTR(MP_QSTR_mode), MP_ROM_PTR(&watchdog_watchdogtimer_mode_obj) },
132113
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy