diff --git a/testing/GPS-comms.js b/testing/GPS-comms.js index b9c2c645c..38d4c9dde 100644 --- a/testing/GPS-comms.js +++ b/testing/GPS-comms.js @@ -1,13 +1,13 @@ Bangle.setGPSPower(1) //Bangle.on('GPS',print); -/*Bangle.on('GPS-raw',function (d) { +Bangle.on('GPS-raw',function (d) { if (d[0]=="$") return; if (d.startsWith("\xB5\x62\x05\x01")) print("GPS ACK"); else if (d.startsWith("\xB5\x62\x05\x00")) print("GPS NACK"); // 181,98 sync chars else print("GPS",E.toUint8Array(d).join(",")); -});*/ +}); function writeGPScmd(cmd) { var d = [0xB5,0x62]; // sync chars d = d.concat(cmd); @@ -91,9 +91,9 @@ function getUBX_CFG_GNSS() { for (var i=4;i