Setting callback function on pin9 fails after restart

Is there something special about pin9, or is this a bug?

I have the code below. When I plug in the imp, it executes fine (started1 and started2 are written to log). If I re-run the code (from the code tab), only started1 gets written to the log, it then hangs on configuring pin9).

//Test imp.configure("Test", [], []); function button1_change() { } server.log("started1"); imp.sleep(1); //allow the server log message to be sent hardware.pin9.configure(DIGITAL_IN_PULLUP, button1_change); server.log("started2");

Tested on 2 different imps, same behaviour. Trying the same on pin8 works like I would expect (no hangs). Trying the same code without specifying a callback function works fine as well.

Looks like a bug, thanks for the report. Have filed it…

Fixed for release-14, thanks for the report!