diff -r fae3a1759126 -r 63e4bc918640 master/ethernet.c --- a/master/ethernet.c Mon Jan 19 12:36:18 2009 +0000 +++ b/master/ethernet.c Mon Jan 19 14:46:55 2009 +0000 @@ -217,6 +217,7 @@ /** Sends a frame or the next fragment. + \todo bootstrap mailboxes / use configured mailbox sizes */ int ec_eoe_send(ec_eoe_t *eoe /**< EoE handler */) @@ -230,12 +231,11 @@ remaining_size = eoe->tx_frame->skb->len - eoe->tx_offset; - if (remaining_size <= eoe->slave->sii.tx_mailbox_size - 10) { + if (remaining_size <= eoe->slave->sii.std_tx_mailbox_size - 10) { current_size = remaining_size; last_fragment = 1; - } - else { - current_size = ((eoe->slave->sii.tx_mailbox_size - 10) / 32) * 32; + } else { + current_size = ((eoe->slave->sii.std_tx_mailbox_size - 10) / 32) * 32; last_fragment = 0; }