Skip to content
Snippets Groups Projects
Commit 2b7d509d authored by Florian Pose's avatar Florian Pose
Browse files

Renamed EC_ACK to EC_SLAVE_STATE_ACK_ERR

parent 4c703d4c
No related branches found
No related tags found
No related merge requests found
......@@ -1040,7 +1040,7 @@ void ec_fsm_slavescan_state(ec_fsm_t *fsm /**< finite state machine */)
}
slave->current_state = EC_READ_U8(datagram->data);
if (slave->current_state & EC_ACK) {
if (slave->current_state & EC_SLAVE_STATE_ACK_ERR) {
EC_WARN("Slave %i has state error bit set (0x%02X)!\n",
slave->ring_position, slave->current_state);
slave->current_state &= 0x0F;
......@@ -1881,7 +1881,7 @@ void ec_fsm_change_status(ec_fsm_t *fsm /**< finite state machine */)
return;
}
if (slave->current_state & 0x10) {
if (slave->current_state & EC_SLAVE_STATE_ACK_ERR) {
// state change error
fsm->change_new = slave->current_state & 0x0F;
EC_ERR("Failed to set state 0x%02X - Slave %i refused state change"
......
......@@ -67,8 +67,8 @@ typedef enum
/**< SAVEOP (mailbox communication and input update) */
EC_SLAVE_STATE_OP = 0x08,
/**< OP (mailbox communication and input/output update) */
EC_ACK = 0x10
/**< Acknoledge bit (no state) */
EC_SLAVE_STATE_ACK_ERR = 0x10
/**< Acknoledge/Error bit (no actual state) */
}
ec_slave_state_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment