Fixes #3146: fixed Fahrenheit temperature conversion error (if PREC was not 0) (ported from master)
This commit is contained in:
@@ -688,6 +688,9 @@ void TelemetrySensorPanel::on_unit_currentIndexChanged(int index)
|
|||||||
{
|
{
|
||||||
if (!lock) {
|
if (!lock) {
|
||||||
sensor.unit = index;
|
sensor.unit = index;
|
||||||
|
if (sensor.unit == SensorData::UNIT_FAHRENHEIT) {
|
||||||
|
sensor.prec = 0;
|
||||||
|
}
|
||||||
update();
|
update();
|
||||||
emit modified();
|
emit modified();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user