forked from xiaozhi/xiaozhi-esp32
bump to 0.8.0
This commit is contained in:
@@ -123,10 +123,10 @@ void Display::UpdateDisplay() {
|
||||
}
|
||||
}
|
||||
|
||||
int battery_voltage;
|
||||
int battery_level;
|
||||
bool charging;
|
||||
if (board.GetBatteryVoltage(battery_voltage, charging)) {
|
||||
text += "\n" + std::to_string(battery_voltage) + "mV";
|
||||
if (board.GetBatteryLevel(battery_level, charging)) {
|
||||
text += "\nPower " + std::to_string(battery_level) + "%";
|
||||
if (charging) {
|
||||
text += " (Charging)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user