Skip to content

Commit

Permalink
Just removed the test bit altogether
Browse files Browse the repository at this point in the history
  • Loading branch information
jones139 committed Dec 13, 2023
1 parent fef2f63 commit aa7d61b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions apps/openseizure/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,9 @@ function getTestVal() {
// From 'sensible.js' example app
function encodeAccel3DData(a) {
let x = 0; let y = 0; let z = 0;
if (USE_TEST_ACC_DATA === true) {
x = toByteArray(getTestVal(),2, true);
y = toByteArray(getTestVal(),2, true);
z = toByteArray(getTestVal(),2, true);
} else {
x = toByteArray(int(1000*a.x), 2, true);
y = toByteArray(int(1000*a.y), 2, true);
z = toByteArray(int(1000*a.z), 2, true);
}
x = toByteArray(int(1000*a.x), 2, true);
y = toByteArray(int(1000*a.y), 2, true);
z = toByteArray(int(1000*a.z), 2, true);
return [
x[0], x[1], y[0], y[1], z[0], z[1] // Accel 3D
];
Expand Down

0 comments on commit aa7d61b

Please sign in to comment.