Skip to content

Commit 301b7cf

Browse files
authored
Battery fuel gauge stability improvements (#64)
* fix: battery fuel gauge stability issue * chore: version bump to v2.3.6 Signed-off-by: Adam BZH <adam@onekey.so> --------- Signed-off-by: Adam BZH <adam@onekey.so>
1 parent fe7fe2e commit 301b7cf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/firmware_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
0xEEBBEE /**< DUMMY Organisation Unique ID. Will be passed to Device Information Service. You shall use the \
1212
Organisation Unique ID relevant for your Company */
1313
#define HW_REVISION "1.0.0"
14-
#define FW_REVISION "2.3.5"
14+
#define FW_REVISION "2.3.6"
1515
#define SW_REVISION "s132_nrf52_7.0.1"
1616
#define BT_REVISION "1.0.1"
1717

drivers/pmu/axp2101.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ static bool axp2101_config_battery_param(void)
151151
// set fuel gauge use BROM
152152
EC_E_BOOL_R_BOOL(axp2101_set_bits(AXP2101_CONFIG, (1 << 4)));
153153
// reset fuel gauge
154-
EC_E_BOOL_R_BOOL(axp2101_set_bits(AXP2101_RESET_CFG, (1 << 2)));
155-
EC_E_BOOL_R_BOOL(axp2101_clr_bits(AXP2101_RESET_CFG, (1 << 2)));
154+
// Note: as per AXP support suggestion, but will cause sudden jump in fuel gauge value
155+
// from out testing this seems not necessary anyways
156+
// EC_E_BOOL_R_BOOL(axp2101_set_bits(AXP2101_RESET_CFG, (1 << 2)));
157+
// EC_E_BOOL_R_BOOL(axp2101_clr_bits(AXP2101_RESET_CFG, (1 << 2)));
156158
}
157159

158160
return true;

0 commit comments

Comments
 (0)