mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-16 16:05:15 +02:00
Änderung beim Anzeigen ActualProduction in kW
mit 1 Nachkommastelle.
This commit is contained in:
parent
a60980d38a
commit
8827e11cec
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue