Skip to content

Pmwout resource error messages - #11107

Merged
tannewt merged 2 commits into
adafruit:mainfrom
dhalbert:pmwout-resource-error-messages
Jul 10, 2026
Merged

tannewt merged 2 commits into
adafruit:mainfrom
dhalbert:pmwout-resource-error-messages

Conversation

@dhalbert

@dhalbert dhalbert commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

The error messages produced by PWMOut construction are confusing when there is conflict with a previously created PWMOut: sometimes the frequency is invalid, sometimes you get a resource message. Simplify the error codes and add a new error message Conflicting settings for shared resource which is clearer.

I looked at other non-PWMOut uses of the original shared message ``Internal resource(s) in use and didn't find any that would benefit from switching the message

While doing make translate I got a message that --sort-output (-s) is deprecated for xgettext and mergemsg. I think the original idea was that it minimizes the merge changes when a messages are changed, add, or removed. There is some good reason for the deprecation but I couldn't find a good explanation. It appears --sort-by-file is fine for similarly canonicalizing the output, but it will cause a big diff this one time.

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@tannewt
tannewt merged commit bdc3897 into adafruit:main Jul 10, 2026
674 checks passed
@dhalbert
dhalbert deleted the pmwout-resource-error-messages branch July 10, 2026 18:48
@dhalbert dhalbert mentioned this pull request Aug 26, 2026
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