Skip to content

Jacdac radio conflict (proxy mode) - #11498

Open
thomasjball wants to merge 5 commits into
masterfrom
jacdac-radio-conflict
Open

Jacdac radio conflict (proxy mode)#11498
thomasjball wants to merge 5 commits into
masterfrom
jacdac-radio-conflict

Conversation

@thomasjball

Copy link
Copy Markdown
Collaborator

this PR fixes the issue jacdac/jacdac#68. The fix is to allow only the first microbit sim to send and receive Jacdac messages. This prevents the proxy mode from engaging when a radio message is sent creating a second microbit sim, which will neither receive/send jacdac messages.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a Jacdac/radio interaction issue in the simulator by ensuring that only the primary (first) micro:bit simulator frame participates in Jacdac message traffic, preventing unintended proxy-mode behavior when additional simulator frames are spawned.

Changes:

  • Removed legacy/temporary “newJacdacSimulator” gating logic for Jacdac message simulator startup.
  • Added filtering so Jacdac messagepacket traffic is ignored from non-primary micro:bit frames and not forwarded to other micro:bit frames.

Comment thread pxtsim/simdriver.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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