BattMon: fix compile warning re to unused variable
This commit is contained in:
parent
3b3752468d
commit
dbc01e2f1a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user