Skip to content

Commit 68561fc

Browse files
authoredMar 19, 2025
Merge pull request #10144 from eightycc/issue-7722
Remove watchdog.deinit() for 10.0.0.
2 parents ed2ae0d + 9b3731c commit 68561fc

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed
 

‎shared-bindings/watchdog/WatchDogTimer.c

-19
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)