Skip to content

fix(asusd): skip failing armoury attributes instead of aborting#144

Open
scardracs wants to merge 1 commit into
OpenGamingCollective:mainfrom
scardracs:fix-armoury-break
Open

fix(asusd): skip failing armoury attributes instead of aborting#144
scardracs wants to merge 1 commit into
OpenGamingCollective:mainfrom
scardracs:fix-armoury-break

Conversation

@scardracs

Copy link
Copy Markdown
Contributor

In start_attributes_zbus, if reload() fails for an attribute, the code logged that it was skipping it, but used break instead of continue. This aborted the entire registration of all subsequent attributes in the directory loop.

This patch changes the break to a continue, making individual attribute failures non-fatal, as originally intended.

Closes: #132
Signed-off-by: Marco Scardovi scardracs@disroot.org

In start_attributes_zbus, if reload() fails for an attribute, the code logged that it was skipping it, but used break instead of continue. This aborted the entire registration of all subsequent attributes in the directory loop.

This patch changes the break to a continue, making individual attribute failures non-fatal, as originally intended.

Closes: OpenGamingCollective#132
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.

asusd: one firmware-rejected attribute (nv_dynamic_boost=20 on battery) aborts ALL asus-armoury D-Bus registration (break should be continue)

1 participant