[FL-3051] Gauge initialization routine refactoring, new DataMemory layout, configuration update (#2887)
* FuriHal: refactor power gauge config * Format sources and move gauge DM load to separate method * FuriHal: bq27220 refactoring part 1 * Power: use SYSDWN battery status flag for system shutdown * Libs: bq27220 read DM before write, fix incorrect shift * FuriHal: cleanup gauge config, add flags, add ptr DM type, update symbols * FuriHal: 2 stage gauge DM verification and update, better detection routine * FuriHal: update gauge configuration, lower sleep current and deadband * FuriHal: gauge and charger health reporting * Lib: cleanup bq27220 sources * FuriHal: correct documentation for furi_hal_power_is_shutdown_requested * FuriHal: proper gauge config for f7
This commit is contained in:
@@ -54,8 +54,7 @@ static void draw_battery(Canvas* canvas, BatteryInfoModel* data, int x, int y) {
|
||||
(uint32_t)(data->vbus_voltage * 10) % 10,
|
||||
current);
|
||||
} else if(current < -5) {
|
||||
// Often gauge reports anything in the range 1~5ma as 5ma
|
||||
// That brings confusion, so we'll treat it as Napping
|
||||
// 0-5ma deadband
|
||||
snprintf(
|
||||
emote,
|
||||
sizeof(emote),
|
||||
|
||||
Reference in New Issue
Block a user