diff --git a/apps/gpsrec/interface.html b/apps/gpsrec/interface.html index bfd71a361..11b53164f 100644 --- a/apps/gpsrec/interface.html +++ b/apps/gpsrec/interface.html @@ -98,8 +98,7 @@ function getTrackList() { for (var n=0;n<36;n++) { var f = require("Storage").open(".gpsrc"+n.toString(36),"r"); var l = f.readLine(); - if (l!==undefined) - Bluetooth.println(n+","+l.trim()); + Bluetooth.println((l!==undefined) ? (n + "," + l.trim()) : ""); } })()\n`,tracklist=>{ var trackLines = tracklist.trim().split("\n").filter(l=>l!="");