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 ESC selection when not all ESCs are available #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azerupi
Copy link

@azerupi azerupi commented Dec 14, 2024

This should fix the issue described on discord where flashing wouldn't work when the ESC you have less than the expected number of ESCs connected and an offset exists between the selectedEscInfo and escData.

https://discord.com/channels/1029170737342316605/1218531833961123950/1315472000000462980

The solution here should improve on the one I posted to discord as it keeps the ESC number consistent with the numbers shown next to the buttons in the top right.

I tested this only by writing the default config and my testing setup is somewhat limited so extra testing wouldn't hurt. @tridge would you be able to check if it solves your issue?

At the same time, when writing the default config with the bootloader in master (v13) the bootloader seems to overwrite its revision number and so the compare was always failing. I fixed that by ignoring the bootloader revision byte in the compare.

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.

1 participant