master/fsm_slave_scan.c
changeset 2066 b544025bd696
parent 2044 1ae0491b2f6b
child 2589 2b9c78543663
--- a/master/fsm_slave_scan.c	Thu May 12 16:38:48 2011 +0200
+++ b/master/fsm_slave_scan.c	Thu May 12 16:45:02 2011 +0200
@@ -137,8 +137,8 @@
 
 int ec_fsm_slave_scan_exec(ec_fsm_slave_scan_t *fsm /**< slave state machine */)
 {
-    if (fsm->datagram->state == EC_DATAGRAM_SENT
-        || fsm->datagram->state == EC_DATAGRAM_QUEUED) {
+    if (fsm->datagram->state == EC_DATAGRAM_QUEUED
+        || fsm->datagram->state == EC_DATAGRAM_SENT) {
         // datagram was not sent or received yet.
         return ec_fsm_slave_scan_running(fsm);
     }