Skip to content

Commit

Permalink
Merge pull request #178 from biomurph/master
Browse files Browse the repository at this point in the history
bug fix in PTT and interrupts
  • Loading branch information
biomurph authored Jun 26, 2023
2 parents 3101336 + e8e4df1 commit 4f14d66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/PulseSensor_PTT/PulseSensor_PTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ void loop() {
lastBeatSampleNumber[i] = pulseSensor.getLastBeatTime(i);
if(i == 1){
PTT = lastBeatSampleNumber[1] - lastBeatSampleNumber[0];
PTT = abs(PTT);
pulseSensor.outputToSerial('|',PTT);
}
}
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=PulseSensor Playground
version=1.8.0
version=1.8.2
author=Joel Murphy, Yury Gitman, Brad Needham
maintainer=Joel Murphy, Yury Gitman
sentence=Support at PulseSensor.com
Expand Down
8 changes: 4 additions & 4 deletions src/utility/Interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,9 @@ boolean PulseSensorPlaygroundDisableInterrupt(){
result = true;
#endif

// #else
return result; // unknown or unsupported platform.

#endif

return result; // unknown or unsupported platform.
} // PulseSensorPlaygroundDisableInterrupt


Expand Down Expand Up @@ -389,8 +388,9 @@ boolean PulseSensorPlaygroundEnableInterrupt(){
result = true;
#endif

return result; // unknown or unsupported platform.
#endif

return result; // unknown or unsupported platform.
}

#if USE_ARDUINO_INTERRUPTS
Expand Down

0 comments on commit 4f14d66

Please sign in to comment.