Skip to content

Pmwout resource error messages#11107

Open
dhalbert wants to merge 2 commits into
adafruit:mainfrom
dhalbert:pmwout-resource-error-messages
Open

Pmwout resource error messages#11107
dhalbert wants to merge 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.

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