simple_offboard: don’t fall if no cell voltage

This commit is contained in:
Oleg Kalachev
2017-12-29 00:15:02 +03:00
parent 4fd9f15eba
commit 242e798842

View File

@@ -416,7 +416,10 @@ def get_telemetry(req):
if battery:
res['voltage'] = battery.voltage
res['cell_voltage'] = battery.cell_voltage[0]
try:
res['cell_voltage'] = battery.cell_voltage[0]
except:
pass
return res