Skip to content

Commit caff0dc

Browse files
committed
Linted
1 parent 067e408 commit caff0dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ulab_Crunch_Numbers_Fast/cluepulse

ulab_Crunch_Numbers_Fast/cluepulse/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def main():
119119
# We gathered enough data to fill the filters, and
120120
# the light value crossed the zero line in the positive direction
121121
# Therefore we need to record a pulse
122-
if n > len(taps) and old_value < 0 and filtered >= 0:
122+
if n > len(taps) and old_value < 0 <= filtered:
123123
# This crossing time is estimated, but it increases the pulse
124124
# estimate resolution quite a bit. If only the nearest 1/8s
125125
# was used for pulse estimation, the smallest pulse increment

0 commit comments

Comments
 (0)