diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_BMI088.cpp b/libraries/AP_InertialSensor/AP_InertialSensor_BMI088.cpp index dcbbf22046..aa839b6b4e 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_BMI088.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor_BMI088.cpp @@ -400,7 +400,7 @@ void AP_InertialSensor_BMI088::read_fifo_gyro(void) } const float scale = radians(2000.0f) / 32767.0f; const uint8_t max_frames = 8; - const Vector3i bad_frame{int16_t(0xffff), int16_t(0xffff), int16_t(0xffff)}; + const Vector3i bad_frame{INT16_MIN,INT16_MIN,INT16_MIN}; Vector3i data[max_frames]; if (num_frames & 0x80) {