From 8827e11cec5c44f16f1240aeb779e9f3bc7f21ee Mon Sep 17 00:00:00 2001 From: dAjaY85 Date: Mon, 9 Jan 2023 13:37:17 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderung=20beim=20Anzeigen=20ActualProduct?= =?UTF-8?q?ion=20in=20kW=20mit=201=20Nachkommastelle.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/MonochromeDisplay/MonochromeDisplay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/MonochromeDisplay/MonochromeDisplay.h b/src/plugins/MonochromeDisplay/MonochromeDisplay.h index e081f29b..0b541730 100644 --- a/src/plugins/MonochromeDisplay/MonochromeDisplay.h +++ b/src/plugins/MonochromeDisplay/MonochromeDisplay.h @@ -172,7 +172,7 @@ class MonochromeDisplay { mDisplay.setFont(u8g2_font_logisoso16_tr); mDisplay.setCursor(25,17); if (totalActual>999){ - sprintf(fmtText,"%3.0f",(totalActual/1000)); + sprintf(fmtText,"%2.1f",(totalActual/1000)); mDisplay.print(String(fmtText)+F(" kW")); } else { sprintf(fmtText,"%3.0f",totalActual); @@ -234,7 +234,7 @@ class MonochromeDisplay { mDisplay.drawXBM(10,5,8,17,bmp_arrow); mDisplay.setCursor(25,20); if (totalActual>999){ - sprintf(fmtText,"%3.0f",(totalActual/1000)); + sprintf(fmtText,"%2.1f",(totalActual/1000)); mDisplay.print(String(fmtText)+F(" kW")); } else { sprintf(fmtText,"%3.0f",totalActual);