mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 20:18:31 -04:00
AP_Compass: fixed build error on ChibiOS
This commit is contained in:
parent
e3f4860666
commit
b741c6c29e
@ -138,13 +138,13 @@ bool AP_Compass_IST8310::init()
|
||||
}
|
||||
|
||||
if (reset_count == 5) {
|
||||
fprintf(stderr, "IST8310: failed to reset device\n");
|
||||
printf("IST8310: failed to reset device\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!_dev->write_register(AVGCNTL_REG, AVGCNTL_VAL_Y_16 | AVGCNTL_VAL_XZ_16) ||
|
||||
!_dev->write_register(PDCNTL_REG, PDCNTL_VAL_PULSE_DURATION_NORMAL)) {
|
||||
fprintf(stderr, "IST8310: found device but could not set it up\n");
|
||||
printf("IST8310: found device but could not set it up\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user