Skip to content

Commit

Permalink
Merge pull request #13 from WayneKeenan/master
Browse files Browse the repository at this point in the history
Fix for issue #12
  • Loading branch information
nseidle authored Mar 28, 2018
2 parents f109ec3 + 19b9ee0 commit df86e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MAX30105.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ void MAX30105::setup(byte powerLevel, byte sampleAverage, byte ledMode, int samp
//Tell caller how many samples are available
uint8_t MAX30105::available(void)
{
uint8_t numberOfSamples = sense.head - sense.tail;
int8_t numberOfSamples = sense.head - sense.tail;
if (numberOfSamples < 0) numberOfSamples += STORAGE_SIZE;

return (numberOfSamples);
Expand Down

0 comments on commit df86e1e

Please sign in to comment.