From 7340502f18c2817a6508f6ef21206ee866e30846 Mon Sep 17 00:00:00 2001 From: murata Date: Wed, 27 Mar 2019 20:06:55 +0900 Subject: [PATCH] AP_Common: Set the value of UINT16 with HIGH byte and LOW byte --- libraries/AP_Common/AP_Common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index d7bff1039c..954704208e 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -81,6 +81,8 @@ #define ARRAY_SIZE(_arr) (sizeof(_arr) / sizeof(_arr[0])) +#define UINT16_VALUE(hbyte, lbyte) (static_cast((hbyte<<8)|lbyte)) + /* * See UNUSED_RESULT. The difference is that it receives @uniq_ as the name to * be used for its internal variable.