You are reading a single comment by @Ganblejs and its replies.
Click here to read the full conversation.
-
I can't even seem to get your Elapsed Time app to fail the way you show it? Can anyone reproduce on 2v24.128 or later?
I did get it to fail like that on 2v24.131. But now on 2v24.132 (and after reinstalling
elapsed_t
) it doesn't seem to happen for me anymore.So probably it's fixed - but I'm not 100% sure.
Thanks for the report @Pologram, and for tracking this down @Ganblejs! That's a bit of a pain. The change in event handling was to fix some errors other apps/people were having (which made things behave differently depending on whether there was a pre-existing event handler or not).
I was trying to make a very basic proof of concept for this, and:
or just
don't seem to trigger it for me on latest firmwares. I even tried with an extra
Bangle.on('touch', ()=>{})
just in case. I can't even seem to get your Elapsed Time app to fail the way you show it? Can anyone reproduce on 2v24.128 or later?As an easy fix I think just changing
showMainMenu();
tosetTimeout(showMainMenu,0);
should fix it, but it seems odd it can't be reproduced now?Date
Interesting!
(new Date()) + (new Date())
producesThu Oct 24 2024 13:09:57 GMT+00001729775397865.07299804687
So on one call it's producing a string, and the other a number. The actual change at fault was a seemingly unrelated https://github.com/espruino/Espruino/commit/f09330e7baf42cb8f7fda2c8fec5fd9be11991df but I've managed to get a fix in now!