Fixed syntax error in EC_READ_BIT macro.
authorFlorian Pose <fp@igh-essen.com>
Thu, 06 Apr 2006 09:16:25 +0000
changeset 165 51dea253c49d
parent 164 ed85368b2b2e
child 166 29b19a90ff3f
Fixed syntax error in EC_READ_BIT macro.
include/ecrt.h
--- a/include/ecrt.h	Wed Apr 05 14:02:56 2006 +0000
+++ b/include/ecrt.h	Thu Apr 06 09:16:25 2006 +0000
@@ -109,7 +109,7 @@
 /*****************************************************************************/
 // 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 { \