Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
swym
firmware
Commits
28775e18
Verified
Commit
28775e18
authored
Aug 22, 2019
by
Rahix
Browse files
fix(bme680): Return None instead of NULL
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
5e587a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycardium/modules/bme680.c
View file @
28775e18
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment