From 71e80d7f0915671a15ad14751dd75158a0f7de9e Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Tue, 30 May 2023 21:42:23 +0200 Subject: [PATCH] Fix compile, add pressure placeholder text --- platformio.ini | 2 -- src/main.cpp | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 7b8eed4..5556ad4 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 diff --git a/src/main.cpp b/src/main.cpp index ef374ac..13c3e1f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);