Ahh. Thanks. That's a strange one. It's sad that it takes so long...
Having the require inside a module isn't a problem at all...
By the way, the crash is probably because the final echo(1) didn't get executed. If you type:
crash
echo(1)
[Ctrl-C] echo(1) [enter]
It would probably spring back to life.
@Gordon started
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.
Ahh. Thanks. That's a strange one. It's sad that it takes so long...
Having the require inside a module isn't a problem at all...
By the way, the
crash
is probably because the finalecho(1)
didn't get executed. If you type:[Ctrl-C] echo(1) [enter]
It would probably spring back to life.