Skip to content

Fix of signed/unsigned mismatch in variables maxWriteSize and amtToWrite#49

Open
George-Doge wants to merge 1 commit into
sparkfun:mainfrom
George-Doge:main
Open

Fix of signed/unsigned mismatch in variables maxWriteSize and amtToWrite#49
George-Doge wants to merge 1 commit into
sparkfun:mainfrom
George-Doge:main

Conversation

@George-Doge

Copy link
Copy Markdown

I changed variable type of amtToWrite from int to uint16_t since it is derived as a difference of uint16_t variables, in order to fix problems raised in issue #48.
Following that I changed a mismatch of variable maxWriteSize which was declared as int16_t but it was assigned a value of variable with uint16_t type. Lastly, to fix another error about comparison of signed and unsigned variables I added an explicit cast to the if statement after declaration of maxWriteSize.

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.

1 participant