Tools: correct LogAnalyzer VCC test

This commit is contained in:
Peter Barker 2016-11-14 09:18:01 +11:00
parent 4dae7a6f3d
commit 0168493d8a

View File

@ -25,10 +25,8 @@ class TestVCC(Test):
vccMin = logdata.channels["CURR"]["Vcc"].min()
vccMax = logdata.channels["CURR"]["Vcc"].max()
except KeyError as e:
# Vcc was renamed to Volts at some stage...
vccMin = logdata.channels["CURR"]["Volt"].min()
vccMax = logdata.channels["CURR"]["Volt"].max()
# apparently it also changed to mV:
vccMin = logdata.channels["POWR"]["Vcc"].min()
vccMax = logdata.channels["POWR"]["Vcc"].max()
vccMin *= 1000
vccMax *= 1000