Skip to content

Commit 4f14d66

Browse files
authored
Merge pull request #178 from biomurph/master
bug fix in PTT and interrupts
2 parents 3101336 + e8e4df1 commit 4f14d66

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

examples/PulseSensor_PTT/PulseSensor_PTT.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ void loop() {
179179
lastBeatSampleNumber[i] = pulseSensor.getLastBeatTime(i);
180180
if(i == 1){
181181
PTT = lastBeatSampleNumber[1] - lastBeatSampleNumber[0];
182-
PTT = abs(PTT);
183182
pulseSensor.outputToSerial('|',PTT);
184183
}
185184
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=PulseSensor Playground
2-
version=1.8.0
2+
version=1.8.2
33
author=Joel Murphy, Yury Gitman, Brad Needham
44
maintainer=Joel Murphy, Yury Gitman
55
sentence=Support at PulseSensor.com

src/utility/Interrupts.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,9 @@ boolean PulseSensorPlaygroundDisableInterrupt(){
320320
result = true;
321321
#endif
322322

323-
// #else
324-
return result; // unknown or unsupported platform.
325-
326323
#endif
324+
325+
return result; // unknown or unsupported platform.
327326
} // PulseSensorPlaygroundDisableInterrupt
328327

329328

@@ -389,8 +388,9 @@ boolean PulseSensorPlaygroundEnableInterrupt(){
389388
result = true;
390389
#endif
391390

392-
return result; // unknown or unsupported platform.
393391
#endif
392+
393+
return result; // unknown or unsupported platform.
394394
}
395395

396396
#if USE_ARDUINO_INTERRUPTS

0 commit comments

Comments
 (0)