dashboard: shorten runtime label to ETR
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
static const char *DASHBOARD_VERSION = "0.1.32-3d-relay-buttons";
|
||||
static const char *DASHBOARD_VERSION = "0.1.33-etr-label";
|
||||
|
||||
// Update these if your Cargo ESP AP credentials are different.
|
||||
static const char *CARGO_WIFI_SSID = "OverlandController";
|
||||
|
||||
@@ -513,7 +513,7 @@ static void update_overview_widgets()
|
||||
float remaining_to_full_ah = status_model.capacity_ah - status_model.remaining_ah;
|
||||
estimate_text = "Full in " + format_hours(remaining_to_full_ah / status_model.current);
|
||||
} else if (status_model.current < -0.05 && status_model.remaining_ah > 0.0) {
|
||||
estimate_text = "Runtime " + format_hours(status_model.remaining_ah / abs(status_model.current));
|
||||
estimate_text = "ETR " + format_hours(status_model.remaining_ah / abs(status_model.current));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user