From 4be814338f3b0b745850ea36971afbc3f2e56d55 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Thu, 25 Jul 2019 23:22:09 +0200 Subject: [PATCH] display.cpp: fix field width BME --- src/display.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display.cpp b/src/display.cpp index 19ec7bcc..fff3b4a0 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -338,16 +338,16 @@ void draw_page(time_t t, uint8_t page) { #if (HAS_BME) // line 2-3: Temp - snprintf(buff, sizeof(buff), "TMP:%-4.1f", bme_status.temperature); + snprintf(buff, sizeof(buff), "TMP:%-2.1f", bme_status.temperature); u8x8.draw2x2String(0, 2, buff); // line 4-5: Hum - snprintf(buff, sizeof(buff), "HUM:%-4.1f", bme_status.humidity); + snprintf(buff, sizeof(buff), "HUM:%-2.1f", bme_status.humidity); u8x8.draw2x2String(0, 4, buff); #ifdef HAS_BME680 // line 6-7: IAQ - snprintf(buff, sizeof(buff), "IAQ:%-4.1f", bme_status.iaq); + snprintf(buff, sizeof(buff), "IAQ:%-3.0f", bme_status.iaq); u8x8.draw2x2String(0, 6, buff); #endif