Closed
Description
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