Poll both devices. redundancy
authorFlorian Pose <fp@igh-essen.com>
Wed, 09 Nov 2011 12:58:09 +0100
branchredundancy
changeset 2157 8fa0571f9996
parent 2156 71425e6120d8
child 2158 69f2b2702336
Poll both devices.
master/master.c
--- a/master/master.c	Wed Nov 09 12:05:44 2011 +0100
+++ b/master/master.c	Wed Nov 09 12:58:09 2011 +0100
@@ -2126,6 +2126,9 @@
 
     // receive datagrams
     ec_device_poll(&master->main_device);
+    if (master->backup_device.dev) {
+        ec_device_poll(&master->backup_device);
+    }
 
     // dequeue all datagrams that timed out
     list_for_each_entry_safe(datagram, next, &master->datagram_queue, queue) {