AP_Logger: correct constraint of maximum message ID

This commit is contained in:
Peter Barker 2021-12-18 12:39:42 +11:00 committed by Andrew Tridgell
parent 168f278959
commit 600b085cf3

View File

@ -1431,5 +1431,6 @@ enum LogMessages : uint8_t {
_LOG_LAST_MSG_
};
static_assert(_LOG_LAST_MSG_ <= 255, "Too many message formats");
// we reserve ID #255 for future expansion
static_assert(_LOG_LAST_MSG_ < 255, "Too many message formats");
static_assert(LOG_MODE_MSG < 128, "Duplicate message format IDs");