mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-19 01:21:54 +08:00
Fixed syntax error in EC_READ_BIT macro.
This commit is contained in:
+1
-1
@@ -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 { \
|
||||
|
||||
Reference in New Issue
Block a user