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:
@@ -62,6 +62,9 @@ local function getCels(sensor)
|
|||||||
for k, v in pairs(liveCellData) do
|
for k, v in pairs(liveCellData) do
|
||||||
if v < histCellData[k] then histCellData[k] = v end
|
if v < histCellData[k] then histCellData[k] = v end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
-- erase low cell memory when you change lipo
|
||||||
|
histCellData = {}
|
||||||
end
|
end
|
||||||
return liveCellData
|
return liveCellData
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user