Layout module - BTN2 undefined (?) #4913
Replies: 1 comment
-
Posted at 2022-06-23 by fewieden @grikell the problem is not let/const. So far I broke down the issue to a specific commit in the layout library itself by @gfwilliams. The issue was introduced here espruino/BangleApps@43a3d70 It tries to use a physical button 2 for this example instead of a virtual one. The BangleJS2 only has one physical button. Reverting that commit it is using correctly virtual buttons on the BangleJs2 Posted at 2022-06-23 by GRikell Ok, thanks a lot. Posted at 2022-06-28 by @gfwilliams Ok, thanks - it looks like I just got one line in the wrong place: espruino/BangleApps@6ad485c Now fixed I hope (in the development app loader) but please let me know! Posted at 2022-06-28 by GRikell Hi Gordon,
Running in the emulator and disabling minified module uploads, this is the message:
Thanks! Posted at 2022-06-29 by @gfwilliams Ok, thanks - so it looks like this is another separate issue due to the minification (it works fine with the unminified Layout). I'm looking into it now Posted at 2022-06-29 by @gfwilliams Ok, fixed! Posted at 2022-06-29 by GRikell Yes! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-06-22 by GRikell
Hi Al,
it seems that the Layout module has a problem, perhaps related to new handling of let/const of v14 firmware.
When rendering on a Bangle2 a layout with more than one button, the following message is diplayed:
This happens even running the sample code available in the tutorial, e.g.:
I'm pretty sure that it worked on v13.
g-
Beta Was this translation helpful? Give feedback.
All reactions