Skip to content

Update Usermod: Battery#3964

Merged
blazoncek merged 1 commit intowled:0_15from
adamsthws:0_15_battery_usermod_init_improvement
May 11, 2024
Merged

Update Usermod: Battery#3964
blazoncek merged 1 commit intowled:0_15from
adamsthws:0_15_battery_usermod_init_improvement

Conversation

@adamsthws
Copy link
Copy Markdown
Contributor

When taking the initial voltage reading after first powering on, voltage hasn't had chance to stabilize so the reading can be inaccurate, which in turn may incorrectly trigger the low-power preset. (Manifests when the user has selected a low read interval and/or is using a capacitor).

Resolution: A non-blocking, fixed 10 second delay has been added to the initial voltage reading to give the voltage time to stabilize.

Thankyou!

Issue:
When taking the initial voltage reading after first powering on, voltage hasn't had chance to stabilize so the reading can be inaccurate, which in turn may incorrectly trigger the low-power preset. (Manifests when the user has selected a low read interval and/or is using a capacitor).

Resolution:
A non-blocking, fixed 10 second delay has been added to the initial voltage reading to give the voltage time to stabilize.

This is a reworked version of the (now closed) PR here:
wled#3959

- Rebased the update for 0_15.

- Added a constant so the delay can be modified via my_config.h.

- Small adjustments to make the PR compatible again after the recent restructuring in this PR: (wled#3003).

Thankyou!
@adamsthws
Copy link
Copy Markdown
Contributor Author

adamsthws commented May 9, 2024

Quick notes...

This is a reworked version of the (now closed) PR here: #3959

Thankyou to @blazoncek and @itCarl for your suggestions...

@blazoncek blazoncek merged commit 522e5e7 into wled:0_15 May 11, 2024
@adamsthws adamsthws deleted the 0_15_battery_usermod_init_improvement branch May 21, 2024 18:52
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