From 969b246f7623f5edb1ac1b1e57b2555be0e55a5a Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 8 Jun 2005 22:40:57 +0000 Subject: [PATCH] Corrected placement of parentheses. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6624 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 820ca250bc..d0f9b026b6 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -443,9 +443,9 @@ static int button_read(void) /* special buttons */ data = GPIO1_READ; - if (!button_hold() && (data & (0x20 == 0))) + if (!button_hold() && ((data & 0x20) == 0)) btn |= BUTTON_ON; - if (!remote_button_hold() && (data & (0x40 == 0))) + if (!remote_button_hold() && ((data & 0x40) == 0)) btn |= BUTTON_RC_ON;