Zero mailbox datagram before sending.
authorFlorian Pose <fp@igh-essen.com>
Thu, 09 Jul 2009 14:05:36 +0000
changeset 1492 c44308ec691b
parent 1491 40529f2f60bd
child 1493 9e6d8f78acd0
Zero mailbox datagram before sending.
master/mailbox.c
--- a/master/mailbox.c	Thu Jul 09 12:54:49 2009 +0000
+++ b/master/mailbox.c	Thu Jul 09 14:05:36 2009 +0000
@@ -71,6 +71,7 @@
         return ERR_PTR(-EOVERFLOW);
     }
 
+    ec_datagram_zero(datagram);
     ret = ec_datagram_fpwr(datagram, slave->station_address,
             slave->configured_rx_mailbox_offset,
             slave->configured_rx_mailbox_size);