Add more heat/humidity precision levels
This commit is contained in:
parent
e46e04588f
commit
217caf532b
@ -1681,6 +1681,10 @@ function updateCoordinateDisplay(pixelX, pixelY) {
|
||||
heat_precision = 1;
|
||||
} else if (heat_range >= 1) {
|
||||
heat_precision = 2;
|
||||
} else if (heat_range >= 0.1) {
|
||||
heat_precision = 5;
|
||||
} else if (heat_range >= 0.001) {
|
||||
heat_precision = 10;
|
||||
}
|
||||
|
||||
let humidity_precision = null;
|
||||
@ -1690,6 +1694,10 @@ function updateCoordinateDisplay(pixelX, pixelY) {
|
||||
humidity_precision = 1;
|
||||
} else if (humidity_range >= 1) {
|
||||
humidity_precision = 2;
|
||||
} else if (humidity_range >= 0.1) {
|
||||
humidity_precision = 5;
|
||||
} else if (humidity_range >= 0.001) {
|
||||
humidity_precision = 10;
|
||||
}
|
||||
|
||||
let heatStr, humidityStr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user