mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Logger: correct constraint of maximum message ID
This commit is contained in:
parent
168f278959
commit
600b085cf3
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user