Skip to content

Remove unused variable in setIntegTime function #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 11, 2024

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