Renamed ACK2 state to CHECK ACK.
authorFlorian Pose <fp@igh-essen.com>
Thu, 20 Jul 2006 08:39:23 +0000
changeset 311 197489292da8
parent 310 b7e7709fd40e
child 312 3b827a82060f
Renamed ACK2 state to CHECK ACK.
master/fsm.c
--- a/master/fsm.c	Wed Jul 19 16:36:36 2006 +0000
+++ b/master/fsm.c	Thu Jul 20 08:39:23 2006 +0000
@@ -85,7 +85,7 @@
 void ec_fsm_change_status(ec_fsm_t *);
 void ec_fsm_change_code(ec_fsm_t *);
 void ec_fsm_change_ack(ec_fsm_t *);
-void ec_fsm_change_ack2(ec_fsm_t *);
+void ec_fsm_change_check_ack(ec_fsm_t *);
 void ec_fsm_change_end(ec_fsm_t *);
 void ec_fsm_change_error(ec_fsm_t *);
 
@@ -1773,17 +1773,16 @@
     // read new AL status
     ec_datagram_nprd(datagram, slave->station_address, 0x0130, 2);
     ec_master_queue_datagram(fsm->master, datagram);
-    fsm->change_state = ec_fsm_change_ack2;
-}
-
-/*****************************************************************************/
-
-/**
-   Change state: ACK.
-   Acknowledge 2.
-*/
-
-void ec_fsm_change_ack2(ec_fsm_t *fsm /**< finite state machine */)
+    fsm->change_state = ec_fsm_change_check_ack;
+}
+
+/*****************************************************************************/
+
+/**
+   Change state: CHECK ACK.
+*/
+
+void ec_fsm_change_check_ack(ec_fsm_t *fsm /**< finite state machine */)
 {
     ec_datagram_t *datagram = &fsm->datagram;
     ec_slave_t *slave = fsm->slave;