Verified Commit 3c021925 authored by koalo's avatar koalo Committed by Rahix
Browse files

feat(bhi160): Cleanup

parent 33b08df7
......@@ -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 */
......
......@@ -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();
}
......
......@@ -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);
......
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