Remove silent flag
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
caa956e918
commit
54c0e3ece4
3 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue