Skip to content

[Feature request] Reduce bin size by excluding serial log from codeย #7

@tonhuisman

Description

@tonhuisman

Similar to sparkfun/SparkFun_SCD4x_Arduino_Library#3 I'm still working on reducing code size for ESPEasy ๐Ÿ˜ƒ

So in that same line, I'm proposing to add a similar compiler flag for reducing the bin size.

//Enable/disable including debug log (to allow saving some space)
#ifndef MAX1704X_ENABLE_DEBUGLOG
  #if defined(LIBRARIES_NO_LOG) && LIBRARIES_NO_LOG
    #define MAX1704X_ENABLE_DEBUGLOG 0 // OFF/disabled/excluded on demand
  #else
    #define MAX1704X_ENABLE_DEBUGLOG 1 // ON/enabled/included by default
  #endif
#endif

I'll open a PR to get that included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions