commit | 7a31a21ab6946f494f9bd6bf08eaa5185c8a3af4 | [log] [tgz] |
---|---|---|
author | Meng-hsuan Chung <menghsuan@google.com> | Fri Apr 28 13:16:35 2017 -0700 |
committer | Meng-hsuan Chung <menghsuan@google.com> | Fri Apr 28 13:16:35 2017 -0700 |
tree | 5fa56963c37e16999adb058c65762e85e6688e5d | |
parent | 2872efb9afcc83be2604389f5ab8e2b839506422 [diff] |
Wrap NS2US() argument with parentheses Change-Id: Id5573dad5ab0bd6332749251aa7fbf897ed2aea9
diff --git a/firmware/os/drivers/window_orientation/window_orientation.c b/firmware/os/drivers/window_orientation/window_orientation.c index 8ed6014..067649a 100644 --- a/firmware/os/drivers/window_orientation/window_orientation.c +++ b/firmware/os/drivers/window_orientation/window_orientation.c
@@ -56,7 +56,7 @@ // all time units in usec, angles in degrees #define RADIANS_TO_DEGREES (180.0f / M_PI) -#define NS2US(x) (x >> 10) // convert nsec to approx usec +#define NS2US(x) ((x) >> 10) // convert nsec to approx usec #define PROPOSAL_MIN_SETTLE_TIME NS2US(40000000ull) // 40 ms #define PROPOSAL_MAX_SETTLE_TIME NS2US(400000000ull) // 400 ms