-
Notifications
You must be signed in to change notification settings - Fork 699
Open
Description
Describe the bug
Using Bluetooth and music in the program produces error 070.
To Reproduce
Steps to reproduce the behavior:
- 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)
- Press the A button a few times.
- 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
Labels
No labels