From a8e95425b79df647587f7a68745802582ece068f Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Tue, 8 Jun 2021 00:53:25 +0200 Subject: :hammer: Small tweaks --- deploy.sh | 2 +- package-lock.json | 2 +- package.json | 2 +- src/js/main.js | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index c5be4d6..81f23ce 100755 --- a/deploy.sh +++ b/deploy.sh @@ -58,7 +58,7 @@ tput sgr0 git checkout controller -git tag "v$VERSION" +#git tag "v$VERSION" git push -f origin controller #git push origin "v$VERSION" diff --git a/package-lock.json b/package-lock.json index 224a27c..b3ce994 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "hoverbit-ble-controller", - "version": "1.1.1", + "version": "1.1.1-alpha.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9178027..bb1317e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hoverbit-ble-controller", - "version": "1.1.1", + "version": "1.1.1-alpha.1", "description": "", "license": "MIT", "scripts": { diff --git a/src/js/main.js b/src/js/main.js index 3d7f494..8ea0951 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -39,6 +39,8 @@ if (!navigator.bluetooth) { /* Define and initialize things */ let ubit = new uBitBLE(); let hoverControl = new hoverControlModule(); +window.ubit = ubit; +window.hoverControl = hoverControl; let joystickLeft = nipplejs.create({ zone: document.querySelector(".joystick-left"), @@ -116,6 +118,7 @@ ubit.onUartTx((text) => { elm.parentNode.replaceChild(newone, elm); /* Actually handle received text. */ + // console.log(`Received: ${text}`); if ((text).indexOf(":") != -1) { let parts = (text).split(":"); @@ -141,6 +144,6 @@ let intervalSendCommands = setInterval(async() => { "S0" + ":"; await ubit.sendUart(command); + // console.log(`Sent: ${command}`); } }, 100); - -- cgit v1.2.3