diff --git a/src/CatenaBase.h b/src/CatenaBase.h index e4b55a9..18af32c 100644 --- a/src/CatenaBase.h +++ b/src/CatenaBase.h @@ -91,7 +91,7 @@ Revision history: #define CATENA_ARDUINO_PLATFORM_VERSION_CALC(major, minor, patch, local) \ (((major) << 24u) | ((minor) << 16u) | ((patch) << 8u) | (local)) -#define CATENA_ARDUINO_PLATFORM_VERSION CATENA_ARDUINO_PLATFORM_VERSION_CALC(0, 14, 0, 60) /* v0.14.0.60 */ +#define CATENA_ARDUINO_PLATFORM_VERSION CATENA_ARDUINO_PLATFORM_VERSION_CALC(0, 14, 0, 61) /* v0.14.0.61 */ #define CATENA_ARDUINO_PLATFORM_VERSION_GET_MAJOR(v) \ (((v) >> 24u) & 0xFFu) diff --git a/src/Catena_Log.h b/src/Catena_Log.h index 2b5b258..fb7200f 100644 --- a/src/Catena_Log.h +++ b/src/Catena_Log.h @@ -87,6 +87,21 @@ class cLog ) __attribute__((__format__(__printf__, 3, 4))); /* format counts start with 2 for non-static C++ member fns */ + // fetch current log flags + DebugFlags getFlags(void) const + { + return this->m_uDebugFlags; + } + + // set log flags and return previous value + DebugFlags setFlags(DebugFlags flags) + { + DebugFlags const oldFlags = this->m_uDebugFlags; + + this->m_uDebugFlags = flags; + return oldFlags; + } + private: DebugFlags m_uDebugFlags; };