mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 10:03:51 +08:00
Zero mailbox datagram before sending.
This commit is contained in:
@@ -71,6 +71,7 @@ uint8_t *ec_slave_mbox_prepare_send(const ec_slave_t *slave, /**< slave */
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user