diff --git a/pxt.json b/pxt.json index 744be9469..8e3a7fa8b 100644 --- a/pxt.json +++ b/pxt.json @@ -59,7 +59,7 @@ }, "public": true, "targetVersions": { - "target": "3.1.52", + "target": "3.1.53", "targetId": "microbit" }, "supportedTargets": [ diff --git a/routing.ts b/routing.ts index 8be24d415..a61fb83b4 100644 --- a/routing.ts +++ b/routing.ts @@ -655,13 +655,13 @@ namespace jacdac { */ //% whenUsed export let onIdentifyRequest = () => { - if (!pins.pinByCfg(DAL.CFG_PIN_LED)) - return - for (let i = 0; i < 7; ++i) { - setPinByCfg(DAL.CFG_PIN_LED, true) - pause(50) - setPinByCfg(DAL.CFG_PIN_LED, false) - pause(150) + if (pins.pinByCfg(DAL.CFG_PIN_LED)) { + for (let i = 0; i < 7; ++i) { + setPinByCfg(DAL.CFG_PIN_LED, true) + pause(50) + setPinByCfg(DAL.CFG_PIN_LED, false) + pause(150) + } } } diff --git a/test.ts b/test.ts index dd719656a..808703dff 100644 --- a/test.ts +++ b/test.ts @@ -43,6 +43,7 @@ jacdac.roleManagerHost.start() jacdac.protoTestHost.start() jacdac.start() jacdac.loggerHost.log("test started") +modules.identify(); jdpackTest()