File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
0.13: Added acceleration data format char.
14
14
0.14: Added 3d acceleration data option and test data option
15
15
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...
Original file line number Diff line number Diff line change 2
2
"id" : " openseizure" ,
3
3
"name" : " OpenSeizureDetector Widget" ,
4
4
"shortName" : " OSD" ,
5
- "version" : " 0.15 " ,
5
+ "version" : " 0.16 " ,
6
6
"description" : " [BETA!] A widget to work alongside [OpenSeizureDetector](https://www.openseizuredetector.org.uk/)" ,
7
7
"icon" : " widget.png" ,
8
8
"type" : " widget" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const ACC_FMT_3D = 3;
19
19
20
20
/////////////////////////////////
21
21
// Build Configuration
22
- const WATCH_FW = "0.15 " ;
22
+ const WATCH_FW = "0.16 " ;
23
23
const WATCH_ID = "BangleJs" ;
24
24
const ACC_FMT = ACC_FMT_3D ;
25
25
const USE_TEST_ACC_DATA = false ; // FIXME - does not send real data when set to true
@@ -49,7 +49,7 @@ function getTestVal() {
49
49
// From 'sensible.js' example app
50
50
function encodeAccel3DData ( a ) {
51
51
let x = 0 ; let y = 0 ; let z = 0 ;
52
- if ( USE_TEST_ACC_DATA ) {
52
+ if ( USE_TEST_ACC_DATA === true ) {
53
53
x = toByteArray ( getTestVal ( ) , 2 , true ) ;
54
54
y = toByteArray ( getTestVal ( ) , 2 , true ) ;
55
55
z = toByteArray ( getTestVal ( ) , 2 , true ) ;
You can’t perform that action at this time.
0 commit comments