Skip to content

Commit

Permalink
Ensure escape sequence is double-quoted (hopefully fix issues with op…
Browse files Browse the repository at this point in the history
…enstmap and Gadgetbridge)
  • Loading branch information
gfwilliams committed Aug 8, 2023
1 parent b8813ab commit 5b8b5fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/comms.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ var s = require("Storage").read(${JSON.stringify(filename)});
if (s===undefined) s="";
Bluetooth.println(((s.length+2)/3)<<2);
for (var i=0;i<s.length;i+=${CHUNKSIZE}) Bluetooth.print(btoa(s.substr(i,${CHUNKSIZE})));
Bluetooth.print("\xFF");
Bluetooth.print("\\xFF");
})()\n`).then(text => {
return atobSafe(text);
});
Expand All @@ -498,7 +498,7 @@ Bluetooth.print("\xFF");
Bluetooth.println(f.getLength());
var l = f.readLine();
while (l!==undefined) { Bluetooth.print(l); l = f.readLine(); }
Bluetooth.print("\xFF");
Bluetooth.print("\\xFF");
})()\n`);
},
// Read a non-storagefile file
Expand Down

0 comments on commit 5b8b5fd

Please sign in to comment.