8000 Allow getting the debug_level · Issue #14 · arduino-libraries/Arduino_DebugUtils · GitHub
[go: up one dir, main page]

Skip to content
Allow getting the debug_level  #14
Closed
@kirk-clendinning

Description

@kirk-clendinning

It would be nice for the Debug Utils to be orthogonal so that once a debug level is set, functionality in other parts of the code can be enabled or disabled programmatically.

Add int getDebugMessageLevel(void); and int getDebugLevel(void); to Arduino_DebugUtils.h, complimenting the setDebugMessageLevel() and setDebugLevel() functions.

Add

int getDebugMessageLevel(void) {
  return Debug.getDebugLevel();
}

to Arduino_DebugUtils.cpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0