Thanks - but it looks like you uploaded the example code:
E.showPrompt("Do you like fish?").then(function(v) {
if (v) print("'Yes' chosen");
else print("'No' chosen");
});
// Or
E.showPrompt("How many fish\ndo you like?",{
title:"Fish",
buttons : {"One":1,"Two":2,"Three":3}
}).then(function(v) {
print("You like "+v+" fish");
});
onto the watch. There's a // Or comment in there - those are two separate commands for two separate menus - so I wouldn't be super surprised if that's causing you some kind of issue.
Can you reproduce the problem with just a single menu shown? Or does this only happen when it's one menu and then another overwriting it right away?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks - but it looks like you uploaded the example code:
onto the watch. There's a
// Or
comment in there - those are two separate commands for two separate menus - so I wouldn't be super surprised if that's causing you some kind of issue.Can you reproduce the problem with just a single menu shown? Or does this only happen when it's one menu and then another overwriting it right away?