Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug: fix required_devices handling #137

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

Merged
Xayton merged 1 commit into arduino:main from rjtokenring:fix-list-required-devices
Dec 4, 2025

Conversation

@rjtokenring
Copy link
Contributor

@rjtokenring rjtokenring commented Dec 4, 2025

Motivation

required_devices section must be checked also in case there are no linked containers.

Change description

Move detection logic before code loop exiting

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@rjtokenring rjtokenring changed the title (削除) Fix list required devices (削除ここまで) (追記) bug: fix required_devices handling (追記ここまで) Dec 4, 2025

// The following code is needed only if the brick requires a container.
// In case it doesn't we just skip to the next one.
if !idxBrick.RequireContainer {
Copy link
Contributor Author

@rjtokenring rjtokenring Dec 4, 2025

Choose a reason for hiding this comment

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

required devices was loading after checking if bricks requires a container.
So, required devices are not loaded in case of bricks without a container

Copy link
Contributor

@Xayton Xayton left a comment

Choose a reason for hiding this comment

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

Tested with the new examples (not merged yet).
Works as expected: you get a no speaker device found message.

lucarin91 reacted with thumbs up emoji
@Xayton Xayton merged commit 67a2532 into arduino:main Dec 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lucarin91 lucarin91 lucarin91 approved these changes

@Xayton Xayton Xayton approved these changes

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /