Remove silent flag

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-09-08 00:36:20 +02:00
parent caa956e918
commit 54c0e3ece4
No known key found for this signature in database
GPG key ID: D850A5F772E880F9
3 changed files with 3 additions and 5 deletions

View file

@ -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;
}
}

View file

@ -26,7 +26,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <Fusion/Fusion.h>
@ -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) {

View file

@ -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;
}
}