Skip to content

Commit 6ff2d54

Browse files
author
Daniel Campora
committed
cc3200: Small renaming in wdt functions for the sake of consistency.
1 parent 11d2108 commit 6ff2d54

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cc3200/mods/pybwdt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,20 @@ STATIC mp_obj_t pyb_wdt_make_new (mp_obj_t type_in, mp_uint_t n_args, mp_uint_t
127127
return (mp_obj_t)&pyb_wdt_obj;
128128
}
129129

130-
/// \function wdt_kick()
130+
/// \function wdt.kick()
131131
/// Kicks the watchdog timer
132-
STATIC mp_obj_t pyb_kick_wdt(mp_obj_t self) {
132+
STATIC mp_obj_t pyb_wdt_kick(mp_obj_t self) {
133133
if ((pybwdt_data.servers || pybwdt_data.servers_sleeping) && pybwdt_data.simplelink && pybwdt_data.running) {
134134
pybwdt_data.servers = false;
135135
pybwdt_data.simplelink = false;
136136
MAP_WatchdogIntClear(WDT_BASE);
137137
}
138138
return mp_const_none;
139139
}
140-
STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_kick_wdt_obj, pyb_kick_wdt);
140+
STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_wdt_kick_obj, pyb_wdt_kick);
141141

142142
STATIC const mp_map_elem_t pybwdt_locals_dict_table[] = {
143-
{ MP_OBJ_NEW_QSTR(MP_QSTR_kick), (mp_obj_t)&pyb_kick_wdt_obj },
143+
{ MP_OBJ_NEW_QSTR(MP_QSTR_kick), (mp_obj_t)&pyb_wdt_kick_obj },
144144
};
145145
STATIC MP_DEFINE_CONST_DICT(pybwdt_locals_dict, pybwdt_locals_dict_table);
146146

0 commit comments

Comments
 (0)