AP_Baro: removed unused code

This commit is contained in:
Andrew Tridgell 2012-12-08 15:49:19 +11:00
parent 13309cceb3
commit 2ea243e45b

View File

@ -182,8 +182,6 @@ void AP_Baro_BMP085::ReadPress()
// Send Command to Read Temperature // Send Command to Read Temperature
void AP_Baro_BMP085::Command_ReadTemp() void AP_Baro_BMP085::Command_ReadTemp()
{ {
uint8_t data[1];
data[0] = 0x2E;
if (hal.i2c->writeRegister(BMP085_ADDRESS, 0xF4, 0x2E) != 0) { if (hal.i2c->writeRegister(BMP085_ADDRESS, 0xF4, 0x2E) != 0) {
healthy = false; healthy = false;
} }