• @Gordon ran the code for a couple of hours and I hit:

    {
      "time":"18:54:21",
      "lat":NaN,"lon":NaN,"fix":0,"ERROR: Out of Memory!
    satellit":3}
    ERROR: Error processing Serial data handler - removing it.
    Execution Interrupted during event processing.
    at line 1 col 18
    {console.log(data);if(data.fix>0){consoin function called from system
    Disabling GPS...
    Starting GPS...
    

    Is there any way I can trace where the memory is leaking from?

About