jamesbowman / spidriver

SPI driver public repo
https://spidriver.com/
BSD 3-Clause "New" or "Revised" License
178 stars 56 forks source link

Fix warnings generated when building with verbose warnings #32

Closed cc-michaelu closed 2 years ago

cc-michaelu commented 2 years ago

Fix an unused variable warning and some warnings related to incorrect (signed/unsigned) sscanf format specifiers.

cc-michaelu commented 2 years ago

Good Evening James... Thank you for merging but I had a thought this afternoon. I did not test building on Windows using Visual Studio compiler. Not sure if the solution to the unused warning is portable to non-gcc compilers. Could you verify this?

I dont want to be the one who breaks the Windows build. BTW, I like your product and have both the i2cDriver and spiDriver and use them for various purposes for my job.