Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Platform/MessageType.h')
-rw-r--r--src/Platform/MessageType.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Platform/MessageType.h b/src/Platform/MessageType.h
index 482732bb..4da31ab6 100644
--- a/src/Platform/MessageType.h
+++ b/src/Platform/MessageType.h
@@ -41,8 +41,11 @@ enum MessageType : uint32_t
RawMessageFlag = 0x8000000u, // Do not encapsulate this message
BinaryCodeReplyFlag = 0x10000000u, // This message comes from a binary G-Code buffer
PushFlag = 0x20000000u, // There is more to come; the message has been truncated
+
LogMessageLowBit = 0x40000000u, // Log level consists of two bits this is the low bit
LogMessageHighBit = 0x80000000u, // Log level consists of two bits this is the high bit
+ LogLevelMask = 0xC0000000u, // Mask for all the log level bits
+ LogLevelShift = 30, // How many bits we have to shift a MessageType right by to get the logging level
// Common combinations
NoDestinationMessage = 0u, // A message that is going nowhere