Skip to content

Commit 48acdc0

Browse files
authored
Fix ECG filter
1 parent dcff2f3 commit 48acdc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/filters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class EXGFilter {
6262
case "fourteen":
6363
case "twelve": // 500Hz
6464
switch (type) {
65-
case 1: - this.bitsPoints / 2// ECG Sampling rate: 500.0 Hz, frequency: 30.0 Hz.
65+
case 1: // ECG Sampling rate: 500.0 Hz, frequency: 30.0 Hz.
6666
// Filter is order 2, implemented as second-order sections (biquads).
6767
this.x1 = output - (-1.47548044 * this.z1) - (0.58691951 * this.z2);
6868
output = 0.02785977 * this.x1 + 0.05571953 * this.z1 + 0.02785977 * this.z2;

0 commit comments

Comments
 (0)