master/ethernet.c
changeset 2591 23b360e4a530
parent 2589 2b9c78543663
child 2592 c075dd6b7eef
--- a/master/ethernet.c	Wed Nov 05 15:06:54 2014 +0100
+++ b/master/ethernet.c	Wed Nov 05 18:42:12 2014 +0100
@@ -299,7 +299,7 @@
 #endif
 
     data = ec_slave_mbox_prepare_send(eoe->slave, &eoe->datagram,
-            0x02, current_size + 4);
+            EC_MBOX_TYPE_EOE, current_size + 4);
     if (IS_ERR(data))
         return PTR_ERR(data);
 
@@ -478,7 +478,7 @@
         return;
     }
 
-    if (mbox_prot != 0x02) { // EoE FIXME mailbox handler necessary
+    if (mbox_prot != EC_MBOX_TYPE_EOE) { // FIXME mailbox handler necessary
         eoe->stats.rx_errors++;
 #if EOE_DEBUG_LEVEL >= 1
         EC_SLAVE_WARN(eoe->slave, "Other mailbox protocol response for %s.\n",