It might be worth adding a timeout - Maybe just use the callback argument of at.cmd instead of the registerLine that you added? That includes a timeout if nothing is received in a given time period, so you should never be able to get in a deadlock.
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.
It might be worth adding a timeout - Maybe just use the callback argument of
at.cmd
instead of theregisterLine
that you added? That includes a timeout if nothing is received in a given time period, so you should never be able to get in a deadlock.