Hi - The issue is just that the 'console' reverts to Serial1 (which you have the GPS on when USB is disconnected).
Just add USB.setConsole(1) to onInit() and you'll be sorted - it forces the console to stay on USB.
Also, I would:
That'll make sure onInit() is called just once on startup (it's done automatically after the save()). If it gets called twice (once before save and once after) then you'll end up with 2 sets of GPS modules added and so two sets of identical readings added to the file.
Hope that helps!
© Espruino, powered by microcosm.
Report a problem