Skip to content

Commit fef2f63

Browse files
committed
I hate javascript
1 parent b150b52 commit fef2f63

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/openseizure/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
0.13: Added acceleration data format char.
1414
0.14: Added 3d acceleration data option and test data option
1515
0.15: Converted 3d data to integer milli-g
16+
0.16: I hate Javascript - it looks like saying if (variablename) is true, even if the variable is false...

apps/openseizure/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "openseizure",
33
"name": "OpenSeizureDetector Widget",
44
"shortName": "OSD",
5-
"version": "0.15",
5+
"version": "0.16",
66
"description": "[BETA!] A widget to work alongside [OpenSeizureDetector](https://www.openseizuredetector.org.uk/)",
77
"icon": "widget.png",
88
"type": "widget",

apps/openseizure/widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const ACC_FMT_3D = 3;
1919

2020
/////////////////////////////////
2121
// Build Configuration
22-
const WATCH_FW = "0.15";
22+
const WATCH_FW = "0.16";
2323
const WATCH_ID = "BangleJs";
2424
const ACC_FMT = ACC_FMT_3D;
2525
const USE_TEST_ACC_DATA = false; // FIXME - does not send real data when set to true
@@ -49,7 +49,7 @@ function getTestVal() {
4949
// From 'sensible.js' example app
5050
function encodeAccel3DData(a) {
5151
let x = 0; let y = 0; let z = 0;
52-
if (USE_TEST_ACC_DATA) {
52+
if (USE_TEST_ACC_DATA === true) {
5353
x = toByteArray(getTestVal(),2, true);
5454
y = toByteArray(getTestVal(),2, true);
5555
z = toByteArray(getTestVal(),2, true);

0 commit comments

Comments
 (0)