BattMon: fix compile warning re to unused variable

This commit is contained in:
Tom Pittenger 2015-04-24 14:17:58 +09:00 committed by Randy Mackay
parent 3b3752468d
commit dbc01e2f1a

View File

@ -71,7 +71,6 @@ void AP_BattMonitor_SMBus_PX4::read()
_state.healthy = true;
// read capacity
uint32_t tnow = hal.scheduler->micros();
if ((_batt_fd >= 0) && !_capacity_updated) {
uint16_t tmp;
if (ioctl(_batt_fd, BATT_SMBUS_GET_CAPACITY, (unsigned long)&tmp) == OK) {