Browse Source

AP_Baro: fixed build warning

zr-v5.1
Andrew Tridgell 5 years ago
parent
commit
02aebfcd6f
  1. 2
      libraries/AP_Baro/examples/ICM20789/ICM20789.cpp

2
libraries/AP_Baro/examples/ICM20789/ICM20789.cpp

@ -184,6 +184,7 @@ static void spi_init() @@ -184,6 +184,7 @@ static void spi_init()
}
#endif
#ifdef HAL_INS_MPU60x0_NAME
/*
send a 16 bit command to the baro
*/
@ -193,7 +194,6 @@ static bool send_cmd16(uint16_t cmd) @@ -193,7 +194,6 @@ static bool send_cmd16(uint16_t cmd)
return i2c_dev->transfer(cmd_b, 2, nullptr, 0);
}
#ifdef HAL_INS_MPU60x0_NAME
/*
read baro calibration data
*/

Loading…
Cancel
Save