Skip to content

Conversation

@tonhuisman
Copy link
Contributor

Resolves: #7

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

Usage:

  • Uncomment this line // #define MAX1704x_ENABLE_DEBUGLOG 0 (ca. line 26 in SparkFun_MAX1704x_Fuel_Gauge_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 changed the base branch from main to release_candidate August 9, 2022 15:39
@PaulZC
Copy link
Collaborator

PaulZC commented Aug 9, 2022

Thank you Ton (@tonhuisman ),

Merging into release_candidate for testing...

Best wishes,
Paul

@PaulZC PaulZC merged commit fb1050d into sparkfun:release_candidate Aug 9, 2022
@tonhuisman tonhuisman deleted the feature/optionally-exclude-debug-log branch August 9, 2022 16:57
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] Reduce bin size by excluding serial log from code

2 participants