Skip to content
Snippets Groups Projects
Verified Commit 28775e18 authored by rahix's avatar rahix
Browse files

fix(bme680): Return None instead of NULL


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