Fix internet volume title and CO2 alert position
This commit is contained in:
@@ -948,7 +948,7 @@ display:
|
||||
"Warte auf Messwerte");
|
||||
}
|
||||
} else {
|
||||
draw_page_title("Internet · Volumen");
|
||||
draw_page_title("Internetvolumen");
|
||||
auto format_volume = [&](sensor::Sensor *source) -> std::string {
|
||||
if (!connected || !source->has_state() || !std::isfinite(source->state)
|
||||
|| source->state < 0.0f) return "--";
|
||||
@@ -1103,5 +1103,5 @@ display:
|
||||
&& id(scd30_co2).state > 1200.0f) {
|
||||
const Color warning_color = id(scd30_co2).state > 1600.0f
|
||||
? Color(255, 0, 0) : Color(255, 170, 40);
|
||||
it.filled_circle(160, 120, 5, warning_color);
|
||||
it.filled_circle(160, 20, 5, warning_color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user