Skip to content

Conversation

YuyaIwata
Copy link
Contributor

Thanks for great sensor board and Arduino library.
In using the library, I found several errors and warning in compile log, so I tried to fix them below.
The line number is from cpp file.

  • Line 356 to 393
    • In MODE_TWO, it might be using the array bpmSenArrTwo is correct, but there are bpmSenArr. Which size of array are not equal, so overflow would be occurred.
  • Line 544
    • Bit shift is not working.
    • Corresponding to above, I found bit mask is wrong in the header file.
  • Line 611
    • The array revNum has not initialized. Which would be needs specify array size and initial value.
  • Others
    • Deleted unused variables.
    • Fixed comparing with under zero in unsigned value.
    • Fixed comparing with over the maximum value of type.
    • Fixed implicit type casting in return to be explicit type casting.

that's all.

P.S.
Sorry for my poor English.

@edspark
Copy link
Collaborator

edspark commented Apr 29, 2020

This looks really great, I do have one request. It seems that you hadn't quite pulled in the latest changes before you made the pull request. Do you mind updating your branch with these changes, so that I can pull them in? Thanks!

@alexmstahl
Copy link

alexmstahl commented Apr 29, 2020 via email

@edspark
Copy link
Collaborator

edspark commented Jun 3, 2020

Thanks @alexmstahl, much appreciated! I somehow didn't see that you had made fixes to your pull request.

@edspark edspark merged commit 0015d81 into sparkfun:master Jun 3, 2020
@YuyaIwata
Copy link
Contributor Author

Thanks for the merge.
All fixes to the pull request were made by me (@YuyaIwata).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants