Fixes #3146: fixed Fahrenheit temperature conversion error (if PREC was not 0) (ported from master)

This commit is contained in:
Damjan Adamic
2015-12-26 19:40:58 +01:00
parent 9db8005f71
commit 400a6c2034
+3
View File
@@ -688,6 +688,9 @@ void TelemetrySensorPanel::on_unit_currentIndexChanged(int index)
{
if (!lock) {
sensor.unit = index;
if (sensor.unit == SensorData::UNIT_FAHRENHEIT) {
sensor.prec = 0;
}
update();
emit modified();
}