mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 05:58:36 -07:00
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user