Skip to content

Commit 0d0d106

Browse files
committed
battery: add more info
1 parent 62c1cb5 commit 0d0d106

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/modes/Battery.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ class BatteryOverlay : public tsl::Gui {
5454
"Battery Current Flow (%ss AVG): %+.0f mA\n"
5555
"Battery Power Flow%s: %+.3f W\n"
5656
"Battery Remaining Time: %s\n"
57+
"Input Current Limt: %d mA\n"
58+
"VBUS Current Limit: %d mA\n"
59+
"Charge Voltage Limit: %d mV\n"
60+
"Charge Current Limit: %d mA\n"
5761
"Charger Type: %u\n"
5862
"Charger Max Voltage: %u mV\n"
5963
"Charger Max Current: %u mA",
@@ -66,6 +70,10 @@ class BatteryOverlay : public tsl::Gui {
6670
batteryFiltered ? "11.25" : "5", batCurrentAvg,
6771
batteryFiltered ? "" : " (5s AVG)", PowerConsumption,
6872
tempBatTimeEstimate,
73+
_batteryChargeInfoFields.InputCurrentLimit,
74+
_batteryChargeInfoFields.VBUSCurrentLimit,
75+
_batteryChargeInfoFields.ChargeVoltageLimit,
76+
_batteryChargeInfoFields.ChargeCurrentLimit,
6977
ChargerConnected,
7078
ChargerVoltageLimit,
7179
ChargerCurrentLimit

0 commit comments

Comments
 (0)