Give BattCheck a 'selective' memory, that is forget about lowest cell when you change lipo without changing model or turning radio off (#3521)

This commit is contained in:
3djc
2016-05-22 11:54:45 +02:00
committed by Bertrand Songis
parent d73e4a6fbf
commit 8bcbd0f7f6
@@ -62,6 +62,9 @@ local function getCels(sensor)
for k, v in pairs(liveCellData) do
if v < histCellData[k] then histCellData[k] = v end
end
else
-- erase low cell memory when you change lipo
histCellData = {}
end
return liveCellData
end