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

@@ -81,7 +81,7 @@ void power_draw_battery_callback(Canvas* canvas, void* context) {
(battery_icon == BatteryIconBarPercent) &&
(power->state != PowerStateCharging) && // Default bar display with percentage
(power->info.voltage_battery_charge_limit >=
4.2)) { // not looking nice with low voltage indicator
4.2f)) { // not looking nice with low voltage indicator
canvas_set_font(canvas, FontBatteryPercent);
// align charge display value with digits to draw
@@ -135,7 +135,7 @@ void power_draw_battery_callback(Canvas* canvas, void* context) {
}
// TODO: Verify if it displays correctly with custom battery skins !!!
if(power->info.voltage_battery_charge_limit < 4.2) {
if(power->info.voltage_battery_charge_limit < 4.2f) {
// Battery charging voltage is modified, indicate with cross pattern
canvas_invert_color(canvas);
uint8_t battery_bar_width = (power->info.charge + 4) / 5;