diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index 7d96284239..c7004569d2 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -89,7 +89,7 @@ #define ARRAY_SIZE(_arr) (sizeof(_arr) / sizeof(_arr[0])) #define UINT16_VALUE(hbyte, lbyte) (static_cast(((hbyte)<<8)|(lbyte))) -#define UINT32_VALUE(b3, b2, b1, b0) (static_cast(((b3)<<23)|((b2)<<16)|((b1)<<8)|(b0))) +#define UINT32_VALUE(b3, b2, b1, b0) (static_cast(((b3)<<24)|((b2)<<16)|((b1)<<8)|(b0))) /* * See UNUSED_RESULT. The difference is that it receives @uniq_ as the name to