Most recent activity
-
-
Hello,
I recently upgraded my firmware to the cutting edge build
espruino_2v24.125_banglejs2.zip
to have the new Alarm update (long press to toggle alarm) and it introduced two bugs in my Elapsed Time app.The first one: it is not possible anymore to add or substract two dates, as it returns
NaN
. The comparison operators also don't work anymore. The fix is easy : just add.getTime()
.Example from the console:
>now.getTime() < target.getTime() =true >now < target =false >now - target =NaN
The second one is more tricky. It seems like when the
touch
event calls a scroller, like this:Bangle.on('touch', function (zone, e) { if (!inMenu && e.y > 24) { if (drawTimeout) clearTimeout(drawTimeout); showMainMenu(); inMenu = true; } });
Then the scroller is displayed, and immediately the menu row located where the touch event was is called. So it immediately goes into whatever menu item that was "under" the touch.
Not sure if I make much sense explaining it but here attached is a video that shows it: I tap the screen and the menu is displayed, and immediately the Date item is called because that's where my finger was.Do you have any ideas on how to fix this?
Thanks
-
-
-
It looks like something went wrong in the
generate.js
script for my two PNGs because when I dorequire("Storage").read("messageicons.img", 20*76, 76)
I get\x18\x18\x81
and then a bunch of\0\0\0
. Basically there is no data for the two icons I added.Maybe something is wrong with the PNG files, but I didn't get any warning/error when running the script.
-
-
Thanks Gordon!
I tried adding the new icons, ran
generate.js
, and tried updating themessageicons
app from my personal app loader, but the resulting icon is completely white, both for Gmail and Messages.I'm not sure about what I did wrong.
Here is my commit: https://github.com/espruino/BangleApps/compare/master...paul-arg:BangleApps:messageicons
Here is the app loader: https://paul-arg.github.io/BangleApps/Any help would be appreciated
Thank you for the fast fix @Gordon!
I upgraded to 2v24.137 and both problems are now fixed!