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 initialization of new profiles' blocked pins and counts #1154

Conversation

bsstephan
Copy link
Contributor

Fixes two fatal bugs:

  1. Creating a totally new profile would not have any pins on a subsequent load of the board, making using the profile lead to an inoperable controller, because the pin count wasn't retained in protobuf.
  2. Creating a totally new profile would not retain the RESERVED or ASSIGNED_TO_ADDON actions, because the old code assumed other methods were populating those profiles' values, but that is not possible on a totally new profile.

old code used to assume that the profiles were copied from profile 1
and/or the pins blocked by addon API calls, such that all profiles'
assigned to addon/reserved pins were already set that way. however, now
creating new profiles, setProfileOptions might have to do that for the
first time
@bsstephan
Copy link
Contributor Author

Resolves #1155.

@Pelsin
Copy link
Contributor

Pelsin commented Sep 28, 2024

Tested, works perfectly!

@arntsonl arntsonl merged commit e943bd1 into OpenStickCommunity:main Sep 28, 2024
44 checks passed
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.

3 participants