diff options
Diffstat (limited to 'cc3200/mods/pybi2c.c')
| -rw-r--r-- | cc3200/mods/pybi2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/mods/pybi2c.c b/cc3200/mods/pybi2c.c index d10fbd8e8..00b6e17e0 100644 --- a/cc3200/mods/pybi2c.c +++ b/cc3200/mods/pybi2c.c @@ -324,7 +324,7 @@ STATIC mp_obj_t pyb_i2c_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n } // create and setup the object - pyb_i2c_obj_t *self = m_new_obj(pyb_i2c_obj_t); + pyb_i2c_obj_t *self = m_new_obj_with_finaliser(pyb_i2c_obj_t); self->base.type = &pyb_i2c_type; self->mode = PYBI2C_MODE_DISABLED; |
