From aff38cc345a34c5ffd8f171f3cd64d3cd26530e9 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Wed, 2 Sep 2026 07:52:11 +0200 Subject: [PATCH 1/4] Update helptext in cmdhw.c Removed instruction for full charge/discharge learning cycle. Signed-off-by: Niel Nielsen --- client/src/cmdhw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhw.c b/client/src/cmdhw.c index 4c154edea..e1b7e5733 100644 --- a/client/src/cmdhw.c +++ b/client/src/cmdhw.c @@ -1809,7 +1809,7 @@ static int CmdBwmSetCap(const char *Cmd) { uint8_t payload[2] = { (uint8_t)(cap & 0xFF), (uint8_t)((cap >> 8) & 0xFF) }; PrintAndLogEx(INFO, "Programming BWM gauge design capacity to " _YELLOW_("%d mAh") "...", cap); - PrintAndLogEx(INFO, "Run this " _YELLOW_("once") "; then perform a full charge/discharge learning cycle."); + PrintAndLogEx(INFO, "Run this " _YELLOW_("once")); clearCommandBuffer(); SendCommandNG(CMD_PM5_BWM_SET_CAP, payload, sizeof(payload)); From a94388544ca4b278850aead779b3c21f4514576a Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Wed, 2 Sep 2026 09:20:55 +0200 Subject: [PATCH 2/4] Simplify battery health logging message Removed unnecessary message about full cycle accuracy for battery health. Signed-off-by: Niel Nielsen --- armsrc/bwm_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/bwm_charger.c b/armsrc/bwm_charger.c index 9a49fa9ab..fb7305796 100644 --- a/armsrc/bwm_charger.c +++ b/armsrc/bwm_charger.c @@ -235,7 +235,7 @@ void bwm_print_battery_status(void) { } unsigned health = (unsigned)(((uint32_t)fcc * 100) / design); Dbprintf(" Full charge cap..... %u mAh (design %u)", fcc, design); - Dbprintf(" Battery health...... %u %% " _YELLOW_("(needs a full cycle to be accurate)"), health); + Dbprintf(" Battery health...... %u %% "), health); } } else { Dbprintf(" Fuel gauge.......... " _YELLOW_("not responding") " (BQ27427 absent or I2C down)"); From 766992ede85af433b40d58503583ae5900335903 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Wed, 2 Sep 2026 09:28:49 +0200 Subject: [PATCH 3/4] Fix battery health log format in bwm_charger.c Signed-off-by: Niel Nielsen --- armsrc/bwm_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/bwm_charger.c b/armsrc/bwm_charger.c index fb7305796..ded3d1775 100644 --- a/armsrc/bwm_charger.c +++ b/armsrc/bwm_charger.c @@ -235,7 +235,7 @@ void bwm_print_battery_status(void) { } unsigned health = (unsigned)(((uint32_t)fcc * 100) / design); Dbprintf(" Full charge cap..... %u mAh (design %u)", fcc, design); - Dbprintf(" Battery health...... %u %% "), health); + Dbprintf(" Battery health...... %u"), health); } } else { Dbprintf(" Fuel gauge.......... " _YELLOW_("not responding") " (BQ27427 absent or I2C down)"); From 96e1c6af18f397bfba73cb0fd6a876f4803b8b37 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Wed, 2 Sep 2026 09:31:30 +0200 Subject: [PATCH 4/4] Fix syntax error in battery health logging Signed-off-by: Niel Nielsen --- armsrc/bwm_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/bwm_charger.c b/armsrc/bwm_charger.c index ded3d1775..160f04e23 100644 --- a/armsrc/bwm_charger.c +++ b/armsrc/bwm_charger.c @@ -235,7 +235,7 @@ void bwm_print_battery_status(void) { } unsigned health = (unsigned)(((uint32_t)fcc * 100) / design); Dbprintf(" Full charge cap..... %u mAh (design %u)", fcc, design); - Dbprintf(" Battery health...... %u"), health); + Dbprintf(" Battery health...... %u", health); } } else { Dbprintf(" Fuel gauge.......... " _YELLOW_("not responding") " (BQ27427 absent or I2C down)");