AP_Compass: fixed build error on ChibiOS

This commit is contained in:
Andrew Tridgell 2018-01-12 19:27:06 +11:00
parent e3f4860666
commit b741c6c29e

View File

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