Thanks @Gordon for the prompt reply.
I'll try your suggestions later today.
It may be a bit more complex but that makes it fun. (see snippet)
Send reset or change clock and then catch the error and retry on a subsequent read of a status register using the snippet.
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 @Gordon for the prompt reply.
I'll try your suggestions later today.
It may be a bit more complex but that makes it fun. (see snippet)
Send reset or change clock and then catch the error and retry on a subsequent read of a status register using the snippet.