Fix compile, add pressure placeholder text

This commit is contained in:
Laura Hausmann 2023-05-30 21:42:23 +02:00
parent 734ecd850c
commit 71e80d7f09
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 6 additions and 3 deletions

View file

@ -17,8 +17,6 @@ upload_speed = 921600
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
lib_deps =
wifwaf/MH-Z19@^1.5.3
adafruit/Adafruit AHTX0@^2.0.1
fmalpartida/LiquidCrystal@^1.5.0
sparkfun/SparkFun SCD4x Arduino Library@^1.0.4
juerd/ESP-WiFiSettings@^3.8.0

View file

@ -244,7 +244,12 @@ void loop() {
LCD.print(co2);
LCD.print("ppm ");
LCD.setCursor(9, 1);
LCD.print(lastWeatherPressure);
if (weatherUpdateSuccess)
LCD.print(lastWeatherPressure);
else
LCD.print("----");
LCD.print("hPa");
Serial.print(co2);