fix(SlaveLogParser): accept negative temperature

This commit is contained in:
Wataru Otsubo 2024-11-01 23:25:31 +09:00
parent 78beef2c68
commit 14e938c589

View file

@ -149,7 +149,8 @@ function parse_power_section!(lines::Base.Iterators.Stateful)::PowerResult
end
line = popfirst!(lines)
fpga_temp = let
m = match(r"^FPGA Temprature \[C\] = ([\d|\.]+)$", line)
# can be minus (see 127_172.txt)
m = match(r"^FPGA Temprature \[C\] = (-?[\d|\.]+)$", line)
parse(Float64, m[1])
end
line = popfirst!(lines)