Skip to content

Conversation

@rjtokenring
Copy link
Contributor

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

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

@per1234 per1234 added the bug Something isn't working label Dec 4, 2025
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.

@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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants