From 6836964e3c17f49a80c0fbce527c732f2b9f7490 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 4 May 2013 23:18:16 +0900 Subject: [PATCH] Copter: resolve compiler warning re fence --- ArduCopter/fence.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/fence.pde b/ArduCopter/fence.pde index 5ff0937815..0344d6a501 100644 --- a/ArduCopter/fence.pde +++ b/ArduCopter/fence.pde @@ -74,10 +74,10 @@ static void fence_send_mavlink_status(mavlink_channel_t chan) // traslate fence library breach types to mavlink breach types uint8_t mavlink_breach_type = FENCE_BREACH_NONE; uint8_t breaches = fence.get_breaches(); - if (breaches & AC_FENCE_TYPE_ALT_MAX != 0) { + if ((breaches & AC_FENCE_TYPE_ALT_MAX) != 0) { mavlink_breach_type = FENCE_BREACH_MAXALT; } - if (breaches & AC_FENCE_TYPE_CIRCLE != 0) { + if ((breaches & AC_FENCE_TYPE_CIRCLE) != 0) { mavlink_breach_type = FENCE_BREACH_BOUNDARY; }