AP_BattMonitor: fixed ESC telem scaling

This commit is contained in:
Andrew Tridgell 2018-07-05 08:35:48 +10:00
parent f96c3c2c0f
commit cdf92c5158
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ void AP_BattMonitor_BLHeliESC::read(void)
for (uint8_t i=0; i<AP_BLHELI_MAX_ESCS; i++) {
AP_BLHeli::telem_data td;
blheli->get_telem_data(i, td);
if (!blheli->get_telem_data(i, td)) {
continue;
}
// accumulate consumed_sum regardless of age, to cope with ESC
// dropping out