From 2c3f752b413b5e1d190f90117fb563d550040237 Mon Sep 17 00:00:00 2001 From: Florian Pose <fp@igh-essen.com> Date: Thu, 6 Apr 2006 09:16:25 +0000 Subject: [PATCH] Fixed syntax error in EC_READ_BIT macro. --- include/ecrt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ecrt.h b/include/ecrt.h index 0aa580b8..fd83a11d 100644 --- a/include/ecrt.h +++ b/include/ecrt.h @@ -109,7 +109,7 @@ int ecrt_slave_write_alias(ec_slave_t *slave, uint16_t alias); /*****************************************************************************/ // Bitwise read/write macros -#define EC_READ_BIT(PD, CH) (*((uint8_t *) (PD)) >> (CH)) & 0x01) +#define EC_READ_BIT(PD, CH) ((*((uint8_t *) (PD)) >> (CH)) & 0x01) #define EC_WRITE_BIT(PD, CH, VAL) \ do { \ -- GitLab