Skip to content

[Feature] Optionally exclude debug logging from object code #4

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

Conversation

tonhuisman
Copy link
Contributor

@tonhuisman tonhuisman commented Aug 3, 2022

Resolves #3

Optionally leave out the debug logging (and the somewhat long flash-string messages) to reduce sketch size (ca. 2.5 kB gained).

Usage:

  • Uncomment this line // #define SCD4x_ENABLE_DEBUGLOG 0 (ca. line 33 in SparkFun_SCD4x_Arduino_Library.h) to disable the debug logging
  • or: Add -DLIBRARIES_NO_LOG=1 to your compiler build flags to disable debug logging
  • or: Use library as before to keep the debug logging in 😃

@PaulZC PaulZC merged commit efff744 into sparkfun:main Aug 3, 2022
@tonhuisman tonhuisman deleted the feature/optionally-exclude-debug-log branch August 3, 2022 09:45
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.

[Feature request] Enable use of the library without debug log included
2 participants