Verified Commit 28775e18 authored by Rahix's avatar Rahix
Browse files

fix(bme680): Return None instead of NULL



Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 5e587a92
...@@ -12,7 +12,7 @@ static mp_obj_t mp_bme680_init() ...@@ -12,7 +12,7 @@ static mp_obj_t mp_bme680_init()
mp_raise_OSError(-ret); mp_raise_OSError(-ret);
} }
return 0; return mp_const_none;
} }
static MP_DEFINE_CONST_FUN_OBJ_0(bme680_init_obj, mp_bme680_init); static MP_DEFINE_CONST_FUN_OBJ_0(bme680_init_obj, mp_bme680_init);
...@@ -24,7 +24,7 @@ static mp_obj_t mp_bme680_deinit() ...@@ -24,7 +24,7 @@ static mp_obj_t mp_bme680_deinit()
mp_raise_OSError(-ret); mp_raise_OSError(-ret);
} }
return 0; return mp_const_none;
} }
static MP_DEFINE_CONST_FUN_OBJ_0(bme680_deinit_obj, mp_bme680_deinit); static MP_DEFINE_CONST_FUN_OBJ_0(bme680_deinit_obj, mp_bme680_deinit);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment