Skip to content

Commit

Permalink
more robust client matching
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 9, 2022
1 parent 77ac5c3 commit a49e634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/microbit-jukebox/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ namespace machine {
// this device was previously connected
// and clients are already instantiated for it
jacdac.bus.unattachedClients.some(
client => client.roleName === d.deviceId
client => client.roleName.indexOf(d.deviceId) === 0
)
)
}
Expand Down Expand Up @@ -257,7 +257,7 @@ namespace machine {
<WaveShape>Math.randomRange(0, 4),
<SoundExpressionEffect>Math.randomRange(0, 3),
<InterpolationCurve>Math.randomRange(0, 1),
Math.randomRange(0, 255)
Math.randomRange(100, 255)
)
return factory.handler(d.deviceId, serviceIndex, sonifyOptions)
}
Expand Down

0 comments on commit a49e634

Please sign in to comment.