From f0dcea7e140ba11b1494a627138d494905a9c50a Mon Sep 17 00:00:00 2001 From: AnHardt Date: Sun, 15 Mar 2015 22:52:50 +0100 Subject: [PATCH] Fix #1611 Warning: suggest parentheses around comparison in operand of & pretty much helped. --- Marlin/Marlin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin.h b/Marlin/Marlin.h index 286a8d5aed..c056dd6ad5 100644 --- a/Marlin/Marlin.h +++ b/Marlin/Marlin.h @@ -33,7 +33,7 @@ #endif #define BIT(b) (1<<(b)) -#define TEST(n,b) ((n)&BIT(b)!=0) +#define TEST(n,b) (((n)&BIT(b))!=0) // Arduino < 1.0.0 does not define this, so we need to do it ourselves #ifndef analogInputToDigitalPin