Skip to content

Bluetooth with music - error 070 #6629

@aorczyk

Description

@aorczyk

Describe the bug
Using Bluetooth and music in the program produces error 070.

To Reproduce
Steps to reproduce the behavior:

  1. Download the program below using the latest MakeCode version (makecode.microbit.org version: 8.0.16, Microsoft MakeCode version: 12.0.16, microbit runtime version: v2.2.0-rc6, codal-microbit-v2 runtime version: v0.3.2)
  2. Press the A button a few times.
  3. The error 070 appears.
music.setVolume(20)
bluetooth.startUartService()

let pressedA = false;
while (true) {
    basic.pause(20)

    if (input.buttonIsPressed(Button.A)) {
        if (!pressedA) {
            pressedA = true
            music.ringTone(Note.C)
        }
    } else {
        if (pressedA) {
            pressedA = false
            music.stopAllSounds()
        }
    }
}

Expected behavior
No error.

Screenshots

micro:bit version (please complete the following information):
V2 and V2.21

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 141.0.7390.67

Smartphone (please complete the following information):

Additional context
Works fine on MakeCode v7.1.47.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions