Skip to content

Commit

Permalink
- added setDebugMessageLevel augmented function (should be deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubidefeo committed Jun 17, 2019
1 parent 39103a8 commit 63544d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Arduino_DebugUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ void Arduino_DebugUtils::vPrint(char const * fmt, va_list args) {
******************************************************************************/

Arduino_DebugUtils Debug;
void setDebugMessageLevel(int const debug_level) { Debug.setDebugLevel(debug_level); }
3 changes: 3 additions & 0 deletions src/Arduino_DebugUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ static int const DBG_INFO = 2;
static int const DBG_DEBUG = 3;
static int const DBG_VERBOSE = 4;

void setDebugMessageLevel(int const debug_level);

/******************************************************************************
CLASS DECLARATION
******************************************************************************/
Expand All @@ -48,6 +50,7 @@ class Arduino_DebugUtils {
Arduino_DebugUtils();

void setDebugLevel(int const debug_level);

void setDebugOutputStream(Stream * stream);

void timestampOn();
Expand Down

0 comments on commit 63544d0

Please sign in to comment.