diff --git a/examples/debug_d3/src/debug.c b/examples/debug_d3/src/debug.c index 6dd22f4..0d524f8 100644 --- a/examples/debug_d3/src/debug.c +++ b/examples/debug_d3/src/debug.c @@ -56,7 +56,7 @@ int main(int argc, const char** argv) { device3_clear(dev3); while (dev3) { - if (device3_read(dev3, -1, false) < 0) { + if (device3_read(dev3, -1) < 0) { break; } } diff --git a/interface_lib/src/device3.c b/interface_lib/src/device3.c index 16feaf5..0a227f7 100644 --- a/interface_lib/src/device3.c +++ b/interface_lib/src/device3.c @@ -26,7 +26,6 @@ #include #include -#include #include #include @@ -317,7 +316,6 @@ device3_type* device3_open(device3_event_callback callback) { }; FusionAhrsSetSettings((FusionAhrs*) device->ahrs, &settings); - return device; } @@ -610,7 +608,7 @@ static void apply_calibration(const device3_type* device, } void device3_clear(device3_type* device) { - device3_read(device, 10, true); + device3_read(device, 10); } int device3_calibrate(device3_type* device, uint32_t iterations, bool gyro, bool accel, bool magnet) { diff --git a/src/driver.c b/src/driver.c index f6d3e85..28823c1 100644 --- a/src/driver.c +++ b/src/driver.c @@ -106,7 +106,7 @@ int main(int argc, const char** argv) { device3_clear(dev3); while (dev3) { - if (device3_read(dev3, 0, false) < 0) { + if (device3_read(dev3, 0) < 0) { break; } }