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
François Revol
firmware
Commits
3c021925
Verified
Commit
3c021925
authored
Aug 21, 2019
by
koalo
Committed by
Rahix
Aug 22, 2019
Browse files
feat(bhi160): Cleanup
parent
33b08df7
Changes
3
Hide whitespace changes
Inline
Side-by-side
epicardium/epicardium.h
View file @
3c021925
...
...
@@ -3,8 +3,6 @@
#include
<stdint.h>
#include
<errno.h>
#include
<stdbool.h>
#include
<stddef.h>
#ifndef __SPHINX_DOC
/* Some headers are not recognized by hawkmoth for some odd reason */
...
...
epicardium/main.c
View file @
3c021925
...
...
@@ -58,7 +58,7 @@ int main(void)
NULL
,
tskIDLE_PRIORITY
+
1
,
NULL
)
!=
pdPASS
)
{
printf
(
"Failed to create bhi160 dispatcher task!
\n
"
);
LOG_CRIT
(
"startup"
,
"Failed to create %s task!"
,
"BHI160
"
);
abort
();
}
...
...
pycardium/modules/bhi160-sys.c
View file @
3c021925
...
...
@@ -23,10 +23,6 @@ STATIC mp_obj_t mp_bhi160_enable_sensor(size_t n_args, const mp_obj_t *args)
cfg
.
sample_rate
=
mp_obj_get_int
(
args
[
2
]);
cfg
.
dynamic_range
=
mp_obj_get_int
(
args
[
3
]);
//cfg.sample_buffer_len = 200;
//cfg.sample_rate = 4;
//cfg.dynamic_range = 2;
int
sd
=
epic_bhi160_enable_sensor
(
sensor_type
,
&
cfg
);
return
MP_OBJ_NEW_SMALL_INT
(
sd
);
...
...
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