From 1414ebd421e5df2ef04654085b1b9e3760acab5c Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Thu, 2 Jan 2020 15:44:09 +0100 Subject: [PATCH] Show pressure with BMP180/BME280 (issue 519) --- src/display.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/display.cpp b/src/display.cpp index 3262f290..e1f5f496 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -343,7 +343,10 @@ void draw_page(time_t t, uint8_t page) { #ifdef HAS_BME680 // line 6-7: IAQ dp_printf(0, 6, FONT_STRETCHED, 0, "IAQ:%-3.0f", bme_status.iaq); -#endif +#else // is BME280 or BMP180 + // line 6-7: Pre + dp_printf(0, 6, FONT_STRETCHED, 0, "PRE:%-2.1f", bme_status.pressure); +#endif // HAS_BME #else dp_printf(16, 5, FONT_STRETCHED, 1, "No BME");