NodeMCU 32s -> Internal flash accessing seems to hang the board, why?

I’ve gotten this working then refactored slightly to take args
so it can be used and it seems to halt.
I don’t see any loops or race conditions that would cause it.
Thanks in advance for the help.

Hi @jimmyhoughjr,

in the read function, line 22, after the last print you are able to output, you placed a str(int) that is probably causing an exception, did you mean str(n)?

Let me know :slight_smile: