Skip to content

ToughC5: select 650 mA, not 830 mA, as the high charge current step - #395

Merged
lovyan03 merged 1 commit into
m5stack:developfrom
ainyan03:toughc5_charge_current
Oct 8, 2026
Merged

lovyan03 merged 1 commit into
m5stack:developfrom
ainyan03:toughc5_charge_current

Conversation

@ainyan03

@ainyan03 ainyan03 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

The charger's CHG_PROG pin (IOE1 G1) switches between 180 mA and 650 mA, the same two steps as CoreMatrix. setChargeCurrent() assumed 830 mA for the high step, so a request between 650 and 829 mA selected 180 mA and applied_mA reported 830 mA.

This corrects the threshold, the reported value and the comments in Power_Class.hpp / Power_Class.inl. No API change.

The charger's CHG_PROG pin (IOE1 G1) switches between 180 mA and 650 mA,
the same two steps as CoreMatrix. The code assumed 830 mA for the high
step, so setChargeCurrent() with a request between 650 and 829 mA picked
180 mA, and the applied current was reported as 830 mA.
@lovyan03
lovyan03 merged commit 5ea6d27 into m5stack:develop Oct 8, 2026
30 checks passed
@ainyan03
ainyan03 deleted the toughc5_charge_current branch October 8, 2026 23:06
@ainyan03 ainyan03 mentioned this pull request Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants