From 6eb5a5a4014be8a85c85bcfccd724262aa4e1862 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 26 Mar 2014 13:06:10 +0400 Subject: [PATCH] Fix for Logger::LogLevelAboveAll --- libuavcan/include/uavcan/protocol/logger.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan/include/uavcan/protocol/logger.hpp b/libuavcan/include/uavcan/protocol/logger.hpp index b6267dbcad..fccf2b3741 100644 --- a/libuavcan/include/uavcan/protocol/logger.hpp +++ b/libuavcan/include/uavcan/protocol/logger.hpp @@ -40,7 +40,7 @@ class Logger public: typedef ILogSink::LogLevel LogLevel; - static const LogLevel LevelAboveAll = (protocol::debug::LogLevel::FieldTypes::value::BitLen << 1) - 1; + static const LogLevel LevelAboveAll = (1 << protocol::debug::LogLevel::FieldTypes::value::BitLen) - 1; private: enum { DefaultTxTimeoutMs = 2000 };