Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flysky): battery charging animation and other timing issues #5471

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

richardclli
Copy link
Collaborator

Battery charging animation problem due to PR#5424

@richardclli richardclli self-assigned this Aug 22, 2024
@richardclli richardclli added this to the 2.11 milestone Aug 22, 2024
@pfeerick pfeerick changed the title fix(Flysky): Battery charging animation problem due to PR#5424 fix(flysky): battery charging animation and other timing issues Aug 22, 2024
@pfeerick pfeerick added the bug/regression ↩️ A new version of EdgeTX broke something label Aug 22, 2024
Also update PL18 tap  timeout and comments
@@ -175,7 +175,7 @@ void handle_battery_charge(uint32_t last_press_time)
return;
}

if(updateTime == 0 || ((get_tmr10ms() - updateTime) >= 50))
if(updateTime == 0 || ((timersGetMsTick() - updateTime) >= 500))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change the 500 to a constant, rather than a magic number for half second? ;) For both NV14/PL18, etc... can be in the common PR if not already there...

@pfeerick
Copy link
Member

Battery animation good now on PL18EV and NV14. Touch is working fine also. There appears to be a pre-existing issue still with tap counting on NV14.

@pfeerick pfeerick merged commit 2ef014d into main Aug 23, 2024
47 checks passed
@pfeerick pfeerick deleted the fix-flysky-batt-charge-after-5424 branch August 23, 2024 01:27
@richardclli
Copy link
Collaborator Author

@pfeerick For nv14 touch problem, please check if PR #5397 resolves it. I have optimized the touch driver of PL18, and this may resolves the touch problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants