We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 067e408 commit caff0dcCopy full SHA for caff0dc
1 file changed
ulab_Crunch_Numbers_Fast/cluepulse/code.py
@@ -119,7 +119,7 @@ def main():
119
# We gathered enough data to fill the filters, and
120
# the light value crossed the zero line in the positive direction
121
# Therefore we need to record a pulse
122
- if n > len(taps) and old_value < 0 and filtered >= 0:
+ if n > len(taps) and old_value < 0 <= filtered:
123
# This crossing time is estimated, but it increases the pulse
124
# estimate resolution quite a bit. If only the nearest 1/8s
125
# was used for pulse estimation, the smallest pulse increment
0 commit comments