Skip to content
This repository has been archived by the owner on Jul 26, 2018. It is now read-only.

Updates for quality #11

Merged
merged 2 commits into from
Nov 12, 2016
Merged

Updates for quality #11

merged 2 commits into from
Nov 12, 2016

Conversation

nkolban
Copy link
Contributor

@nkolban nkolban commented Nov 12, 2016

Removed an unused variable that served no purpose.
Changed a variable type from char to int that was being used only as an array index
as my compiler doesn't like chars used as indices.

Removed an unused variable that served no purpose.
Changed a variable type from char to int that was being used only as an array index
as my compiler doesn't like chars used as indices.
@mgrusin
Copy link
Contributor

mgrusin commented Nov 12, 2016

Hi Neil, thanks for looking at this code and your debugging. Re. char to int, I hate to waste a byte of SRAM if I don't have to; how about changing it to a uint8_t? (The whole library could frankly use that for better portability).

@mgrusin
Copy link
Contributor

mgrusin commented Nov 12, 2016

Also out of curiosity, what compiler / destination processor are you using?

@nkolban
Copy link
Contributor Author

nkolban commented Nov 12, 2016

I'm compiling using xtensa-esp32-elf-gcc which reports as 4.8.5. The target is for the ESP32.

@nkolban
Copy link
Contributor Author

nkolban commented Nov 12, 2016

Changed to uint8_t

@mgrusin mgrusin merged commit 7abff69 into sparkfun:master Nov 12, 2016
@mgrusin
Copy link
Contributor

mgrusin commented Nov 12, 2016

Thanks VERY much Neil, if you ever see anything else that can be improved, please let us know!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants