--- a/master/fsm_slave_scan.c Mon Mar 14 11:24:15 2011 +0100
+++ b/master/fsm_slave_scan.c Tue Apr 05 08:27:05 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);
}