The issue isn't executing a function - it's just that the function you have defined in C isn't returning a value (so it'll be returning some random memory address).
If you stick a return 0 at the end of it, it should work. It's worth checking out the warnings the compiler gives you, as it probably would have flagged that one up :)
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.
The issue isn't executing a function - it's just that the function you have defined in C isn't returning a value (so it'll be returning some random memory address).
If you stick a
return 0
at the end of it, it should work. It's worth checking out the warnings the compiler gives you, as it probably would have flagged that one up :)