change efficiency display for consumption in kWh/100km

This commit is contained in:
interfisch 2023-07-18 21:01:07 +02:00
parent 07ea359c53
commit afe0059b51
1 changed files with 5 additions and 5 deletions

View File

@ -221,20 +221,20 @@ void display_standingDisplay(ESCSerialComm& escFront, ESCSerialComm& escRear) {
display.print(F("Trip:"));
dtostrf(_displaytrip,1,0,buf);
display.print((String)buf);
display.print(" m ");
display.print("m ");
//dtostrf(_displaycurrent,1,2,buf);
dtostrf(_displaywatthours,1,2,buf);
display.print((String)buf);
//display.print(" Ah");
display.print(" Wh");
display.print("Wh");
display.println();
display.print(F("Eff: "));
display.print(F(""));
//dtostrf( _displaytrip/1000/_displaycurrent ,1,2,buf);
dtostrf( _displaytrip/1000/_displaywatthours ,1,2,buf);
dtostrf( _displaywatthours/_displaytrip*100,1,2,buf);
display.print((String)buf);
//display.print(" km/Ah");
display.print(" km/Wh");
display.print(" kWh/100km");
if (_displayOverall){
display.print(" sum");