Allows careless persons to specify a lowercased temperature unit

This commit is contained in:
Samuel FORESTIER
2019-08-25 22:28:27 +02:00
parent 1a15400594
commit 7b6e04998b

@ -80,7 +80,7 @@ function system.compute_avg_chip_temp(chip_name)
end
-- When the Fahrenheit unit is specified, let's perform a manual conversion.
if _settings.temperature.unit == 'F' then
if string.upper(_settings.temperature.unit) == 'F' then
avg_temp = (avg_temp * (9 / 5.)) + 32
end