Skip to content

Commit aa7d61b

Browse files
committed
Just removed the test bit altogether
1 parent fef2f63 commit aa7d61b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

apps/openseizure/widget.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,9 @@ 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 === true) {
53-
x = toByteArray(getTestVal(),2, true);
54-
y = toByteArray(getTestVal(),2, true);
55-
z = toByteArray(getTestVal(),2, true);
56-
} else {
57-
x = toByteArray(int(1000*a.x), 2, true);
58-
y = toByteArray(int(1000*a.y), 2, true);
59-
z = toByteArray(int(1000*a.z), 2, true);
60-
}
52+
x = toByteArray(int(1000*a.x), 2, true);
53+
y = toByteArray(int(1000*a.y), 2, true);
54+
z = toByteArray(int(1000*a.z), 2, true);
6155
return [
6256
x[0], x[1], y[0], y[1], z[0], z[1] // Accel 3D
6357
];

0 commit comments

Comments
 (0)