KittenBot / pxt-sdwireless

4 stars 4 forks source link

sdw_init() fails with current version of Arcade #1

Open gbraad opened 4 years ago

gbraad commented 4 years ago

When SD Wireless Init is called, the editor fails: Program error: name is null.

image

This is likely related to the event handler that is set:

        irq.onEvent(PinEvent.PulseHigh, function () {

https://github.com/KittenBot/pxt-sdwireless/blob/eb33bb1e6f56859588052bb94fa11e5572aaed2d/main.ts#L84

and the following being triggered:

https://github.com/KittenBot/pxt-sdwireless/blob/eb33bb1e6f56859588052bb94fa11e5572aaed2d/main.ts#L201-L205

gbraad commented 4 years ago

In Chrome the error is shown as:

image

"Program Error: Cannot read property 'onEvent' of null"

likely irq/pins.P20 is null ?

gbraad commented 4 years ago
arcade version:  0.14.9
Microsoft MakeCode version:  5.21.14
bgolab commented 4 years ago

I see the same error on current arcade version (both Firefox and Chrome are affected the same way as described above):

arcade version: 0.15.18

Microsoft MakeCode version: 5.30.44

codal-big-brainpad runtime version: v1.1.4