Skip to content

Conversation

grahamPatico
Copy link
Contributor

Description:
Removed unused variable regVal from the setIntegTime function in the SparkFun VEML6030 library. This variable was storing the result of readIntegTime() but was never used, triggering a compiler warning.
Terminal Error (before fix):
warning: unused variable 'regVal' [-Wunused-variable] uint8_t regVal = readIntegTime();

The warning was correctly flagging that we were assigning a value to regVal but never using it in the code, which is inefficient and could confuse future maintainers. This change helps clean up the code without affecting functionality.

@edspark
Copy link
Collaborator

edspark commented Nov 11, 2024

Small but very helpful, thank you!

@edspark edspark merged commit d4f458c into sparkfun:master Nov 11, 2024
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.

2 participants