This commit is contained in:
Willy-JL
2024-06-04 03:01:51 +01:00
132 changed files with 120 additions and 188 deletions

View File

@@ -64,7 +64,7 @@ static void draw_battery(Canvas* canvas, BatteryInfoModel* data, int x, int y) {
ABS(current),
current < HIGH_DRAIN_CURRENT_THRESHOLD ? "mA!" : "mA");
} else if(data->vbus_voltage > 0) {
if(data->charge_voltage_limit < 4.2) {
if(data->charge_voltage_limit < 4.2f) {
// Non-default battery charging limit, mention it
snprintf(emote, sizeof(emote), "Charged!");
snprintf(header, sizeof(header), "Limited to");